Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x

WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi, I manage a WordPress website for a local motorcycle dealer and he'd like to integrate with iVendi's finance calculator widget.

All the calculator needs is a line of Javascript in order to generate the widget, with 3-4 fields pre-populated (e.g. URL, username, registration, mileage, value).

The widget works great when you manually paste the code in but I just wondered if it was possible to pre-populate the script based on the listings from the motorcycle's WooCommerce listing.

Below is an example of a sample script that works:

<script src="https://newvehicle.com/widgets/lib/finance-comparator/loader.js?username=www.motorcycledealerurl.co.uk&quoteeUid=UNIQUE-ID-STATIC-VALUE&class=Bike&condition=Used&vrm=AE60HDD&registrationDate=01/11/2010&capCode=&capId=&cashPrice=5295&vatIncluded=&currentOdometerReading=25897&vehicleImageUrl=http://www.motorcycledealerurl.co.uk/wp-content/uploads/2017/12/IMGP8321.jpg&cashDepositType=&cashDeposit=500&term=36&annualDistance=10000&dateOnForecourt=" async></script>

Open in new window



I need to have the following fields populated from the WooCommerce listing:

vrm
registrationDate
cashPrice
currentOdometerReading

...ideally these need to be pre-populated for each motorcycle as opposed to manually typing these into the script each time...is this possible?

Thanks in advance!
0
Receive 1:1 tech help
LVL 11
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

I have a parent and child theme.
index.php is only present in the parent theme but whatever changes I make to it are ignored when I visit the website.
I realise changes should be made to an overload version of index.php in the child theme but this is just for testing purposes to work out why it doesn't appear to get looked at. I've even made the code in the index.php invalid by removing a few php tags but it has no effect whatsever. I would at least expect the website to break - but it doesn't.
0
After a security review of our new WordPress site it was pointed out that we're vulnerable to "External Service Redirecton - DNS". Specifically, if a URL is entered into the "Your Name" field of our Contact 7 Form then the testers have found that: "It was possible to induce the application to perform server-side DNS lookups of arbitrary domain names"

The suggested remedial action is to implement a whitelist of permitted services and hosts and to block interaction not on this whitelist.

I'm something of a newbie when it comes to this, and it occured to me (perhaps wrongly!) that there may be different whitelists; one for those who cannot enter the site, and a separate for sites to which our server is allowed to speak. Or does a whitelist imply both ways?

Anyway, all help on this gratefully received and I'm imagining this is something that's been done a zillion times before!

I'm using IIS and would prefer that answer, although Apache related help just as good because I've realised I can kind of 'translate' how to do it once I've got the idea.

Incidentally, we definitely want to avoid editing the Contact 7 form's code too much becasue this may be lost when we upgrade, even though I dare say this would fix the issue. Unfortunately the latest version has the same problem, although will let the Contact 7 team know to look into this. Would ideally like to use another form for data collection of this sort although i'm a part of a team that prevents this!

And so, in …
0
Hello,

I'm getting this error when instilling the wordpress theme Bridge:

Parse error: syntax error, unexpected T_STRING in .../public_html/honestoakseo/wp-content/themes/bridge/framework/modules/woocommerce/woocommerce-functions.php on line 124

What do I do?
0
I'm curious about how I might emulate what's currently going on with the Zillow homepage, .. where clicking on the different tabs both changes the background image, and also changes the appearance and behavior of the search form.

https://www.zillow.com/

I'd like to try to implement something similar on a WordPress site, most likely using JQuery (though I'm not averse to using vanilla JavaScript). Does anyone here have any tips or some "quick start" code examples they could share with me?

By the way  .. it's not necessary that I change the page url when I click on the different tabs.  I'm just looking to modify the DOM.

Thanks,
- Yvan
0
my site: https://jessechong.net

I'm wanting to set things up on the front page to be able to write a post and trigger that to populate the Conversation post/page with the post. Is there a plugin or setup I can use to accomplish this? I've tried making it the featured post but can't seem to get it to take as I want it to.
0
I am using a Kallyas WordPress theme and I edit my pages with Zion Builder. My English version of the website is almost done, but now I want to create an Arabic version of it. I tried to used plugins, such as Polylang, but then all of my contents disappeared.

What is the best way to add a new language to my website given the facts above?

Thank you.
0
Hi
I have a question on the best way to setup my products in Woocommerce.

My products are all individual Digital Prints which can be sold under the following Categories:

1. Canvas Prints (Framed or Not Framed)
2. Tea Towels (1 Size)
3. Cushions (1 Size)
4. Stationery/Cards (1 Size)
5. Art Bags (1 Size)

Obviously I don’t want to have to duplicate and reconfigure the Product 5 times to attached it to each Category as individual products.

1. How can I create one product with the options that I need for each of these 5 Product Types?
2. Should I use Grouped Products or a Plugin like “WooCommerce Extra Product Options”?

Any help would be gratefully appreciated.
0
I have a website which is on process of being built with Wordpress.
I need to upload panoramic photos taken with mobile. So far the plugin that I found aren't good enough. The only solution which suites my need so far is the one implemented of Facebook.

Can anyone suggest a plugin or a solution for uploading panoramic photos and obtain the same effect is obtained with Facebook?

Thanks for any contribution.
0
I know of two services that allows you to automatically assign a user license key for software downloads after customers make a purchase.  Easy Digital Downloads and Crypto licensing.  I'm asking if you know of any others that you would recommend for Wordpress preferably or regular html type website, Thank You
0
Free Tool: ZipGrep
LVL 11
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Hi,
When you look at this siten
http://amandawatson,com.au you can see that the html code is showing, instead of content only
I am using Visual Composer, has anyone had an experience like this?
0
I have a Betheme installed with a child Betheme.  It is broken.  

A new theme was purchased with the child theme.   The old one and the new one have the same name.

Can I upload both to the wordpress dashboard?  Do I rename either the old one or new one?  

Can I have under Appearance>Themes

BeTheme BeThemeChild BeTheme BeTheme Child

or Should it be something else like

Be Theme BeTheme Child  or BeTheme-New BeTheme Child-New

The old Betheme was purchase on someone else's account so limited  with the theme.

That's why a new theme was purhased.  

What is the best way to change to the new theme which is the same theme.

Hopefully you understand.

Thanks
0
Problem: wp_remote_get/wp_remote_request of a specific https target fails to return a response unless ran via WP_CLI function.

$wp_remote_args => array(
    'timeout' => 5,
    'sslverify' => true,
    'blocking' => true,
    'user-agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:57.0) Gecko/20100101 Firefox/57.0',
    'headers' => array(
        'Accept' => 'application/json, text/plain, */*',
        'Accept-Encoding' => 'gzip, deflate, br',
        'Accept-Language' => 'en-US,en;q=0.5',
        'Authorization' => '...',
        'Connection' => 'keep-alive',
        'Content-Type' => 'application/json; charset=UTF-8; text/plain',
        'Host' => '...',
        'Origin' => '...',
        'Referer' => '...',
    ),
)
wp_remote_request($url, $wp_remote_args)

Open in new window


I can only assume that something is perceived differently from the remote server when the GET request is received from standard PHP processing vs WP_CLI. Other wp_remote_request/cURL URLs are sent and received without issue.
0
How do I update 4 fields in my sql by one year

EventStartDate      2017-01-08 00:00:00  to  2018-01-08 00:00:00  for example

I need to do a bulk update to a load of records on my wordpress website and increment the dates by 1 year for an existing category. is there a quick way of doing this once I've sorted out the joins?

Full Texts      meta_id      post_id      meta_key      meta_value
      Edit      Delete      31415      4265      _tribe_modified_fields      a:34:{s:8:"post_tag";i:1498896141;s:12:"_EventOrig...
      Edit      Delete      31416      4265      _EventOrigin      event-aggregator
      Edit      Delete      31417      4265      _EventShowMapLink       
      Edit      Delete      31418      4265      _EventShowMap       
      Edit      Delete      31419      4265      _EventAllDay      yes
      Edit      Delete      31420      4265      _EventStartDate      2017-01-08 00:00:00
      Edit      Delete      31421      4265      _EventEndDate      2017-01-08 23:59:59
      Edit      Delete      31422      4265      _EventStartDateUTC      2017-01-08 00:00:00
      Edit      Delete      31423      4265      _EventEndDateUTC      2017-01-08 23:59:59
      
      update `wp_t0jnpbhfm3_postmeta`
      set meta_value = DATE_ADD('_EventStartDate', INTERVAL 1 YEAR)
      where meta_value ='_EventStartDate' and post_id=4265
      
      
      
      SELECT *
FROM  `wp_t0jnpbhfm3_postmeta`
WHERE post_id =4265



select 'meta_value' = DATE_ADD('meta_value', INTERVAL 1 YEAR)
FROM  `wp_t0jnpbhfm3_postmeta`
where meta_key ='_EventStartDate' and post_id=4265
0
I am looking for a script where 5 levels of user can upload video and photos with title,description, caption and search all media using filter searching system. 1st level user can upload and set permissions whether lower level user can see it or not and whether it'll be public or private.

It's has no problem if you it's based on wordpress or raw php.
0
Hi,

I have a site hosted in wpengine. I need to add some redirects to convert non-www  http to https with www . But adding redirects causes the site to go into redirect loop. I need urgent help.

Thanks
0
I had this question after viewing Where is Ninja form data stored in the WordPress database?.  When you export data using Ninja Forms it automatically populates "#" and "Date Submitted" fields at the beginning of the data set.  How can I find these values via MySQL Query?

Any Help would be appreciated!
Thanks,
John
0
I'm trying to create a proposal ecommerce site for a small business. I created a permalinks structure that you can see in the image.

Please go to savannahthinktank.com and click on the links - the link structure is working, but the posts are giving me a 404 error.


Second question - I guess I still need to create a 404 page for this site, inside wordpress, and link to it from Apache?

Thanks
permalinks.png
0
I have problem after migrate to another server.

When i click on menus page, "add to menu" loading, but not effect. Loading (spinning icon) stay all the time. And there is two more problems, in revolution slider when click save, says ajax error! error, and in WP Bakery when I want to edit content and click on edit button, loading but not showing anything.

I was change wp-config.php and increase memory limit, now in backend on status I can say green, just SQL version is red. When I was migrating I need to export SQL custom to MySQL40, because when I importing shows error with utf8mb4_unicode_520_ci. In phpmyadmin I cant see that collation. Now I changed all collation to utf8_general_ci. Maybe this causes problem?

Hosting provider is hostgator, shared hosting.
0
Free Tool: Path Explorer
LVL 11
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

We are using a Wordpress plugin that requires basic authentication for an API JSON request. Basic Authentication has been enabled on cPanel however the plugin returns a "rest_forbidden_context Sorry, you are not allowed to create entries 403" error.

What else needs to be done for this to work properly?
0
Hi,

Is there any solution for migrate woocommerce from one site to other. I need to move all store including woocommerc settings (bank,shipping,checkout,location etc), and products categories orders etc.
0
I am about 3 months into figuring out wordpress (trying to). I have installed, customized, deleted and reinstalled many times over to get more and more comfortable with it and in using the "customize" sections of themes. The one thing that seems very clear to me is that different themes allow you to customize different aspects of fonts and colors. Some allow easy customizing to most aspects while  other themes do not allow a lot of customizing and also not so easily.

I have found that I spend a lot of time messing around with fonts & colors for all the various different aspects of the site (background, main text, button text, hover-over text, banner text, menu text, et.c etc.). So my question is this is there an easier way to add ccs code or some other mechanism to create a list of all these various features that need to be stipulated each time I reinstall or change a theme so that I have a sort of master file that I can use each time, something that stipulates what fonts and colors I want for all these features? Thank you.
0
After a security review of our new WordPress site it was pointed out that we're vulnerable to "External Service Redirecton - DNS". Specifically, if a URL is entered into the "Your Name" field of our Contact 7 Form then the testers have found that: "It was possible to induce the application to perform server-side DNS lookups of arbitrary domain names"

The suggested remedial action is to implement a whitelist of permitted services and hosts and to block interaction not on this whitelist.

I'm something of a newbie when it comes to this, and it occured to me (perhaps wrongly!) that there may be different whitelists; one for those who cannot enter the site, and a separate for sites to which our server is allowed to speak. Or does a whitelist imply both ways?

Anyway, all help on this gratefully received and I'm imagining this is something that's been done a zillion times before!

I'm using IIS and would prefer that answer, although Apache related help just as good because I've realised I can kind of 'translate' how to do it once I've got the idea.

Thanks in advance Iain
0
Hi, my products in mobile mode is showing only 1 per row and I wanted to add 2 products per row. Can you please help me.
Here is the link
http://copierblowout.com/
0
I have installed two plugins; Envira Gallery (Lite version) and ACF (Advanced Custom Fields).
The Wordpress site I'm building is intended to be a aircraft gallery so I have added an ACF field to each image to identify the aircraft type. I would like to have a page that is passed the value of aircraft type which is then used to populate the page with all the images of that type.
New to Wordpress so I don't know if this is possible.
0

WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.