Questions tagged [wordpress]

This tag is for programming-specific questions related to the content management system WordPress. Questions about theme development, WordPress administration, management best practices, and server configuration are off-topic here and best asked on Stack Exchange WordPress Development.

0
votes
0answers
2 views

Problem reading rss feed from another website

I have a site with 2 stores (English and German) and 2 integrated Wordpress blogs (Fishpig extension). I want to display the rss feed of the English and German Blogs on a Wordpress website. The ...
0
votes
0answers
7 views

HTML entity encode is not working with esc_html() and wp_localize_script()

I'm trying to pass JavaScript object using wp_localize_script() function and expecting an entitiy encoded string in the object. Below is the sample: $params = array('str' => esc_html('this string ...
0
votes
0answers
4 views

Attempting to pass a returned value to WP's rest_ensure_response()

This is probably a PHP fundamental, so apologise if I'm stupid in advance. I'm building a simple plugin for Wordpress which accesses wp_head, grabs the code block (scripts and styles) and then ...
0
votes
0answers
13 views

Make tab active which contains the search result in wordpress

In my wordpress site, I have few pages which have tabs. The tabs are generated dynamically from ACF repeater fields.Now, when I use the default wordpress search and the result text is inside a tab, ...
0
votes
0answers
8 views

Restoring Wordpress Header Image

Wordpress twenty thirteen theme. I have no idea how this arose. The opening page had a header image which started just beneath the green menu bar to just above the main central (yellow) text panel. ...
0
votes
0answers
8 views

wp_logout_url() is not working in WordPress Multisite network

I recently configured a WordPress multisite network. However, wp_logout_url() is not working. when I click on logout button nothing happens and the user is not getting logged out. Please let me know ...
-1
votes
0answers
8 views

Why Is My Subdomain not using the Wildcard SSL I Installed?

I've got a wildcard SSL Cert setup in my cpanel. It's currently installed and working on https://maindomain.com and https://www.maindomain.com. I've also used Manage SSL in Cpanel to install the same ...
0
votes
0answers
8 views

Hide parent category from mega menu if child category is empty

I've been searching for weeks and haven't been able to work it out yet... I'm using WooCommerce to power my vehicle parts website. I have a plugin (https://codecanyon.net/item/woocommerce-vehicle-...
0
votes
0answers
4 views

wordpress admin panel 504 Gateway Timeout category

i find this error when i enter wp-admin category. the problem can have this 250 category. the problem is happening occasionally I would appreciate if you help 504 Gateway Timeout
0
votes
2answers
15 views

How to change woocommerce password rule

I am new to Wordpress, i need to change password rule of woocommerce something like this : Minimum 6 character length. one special character required Please help . Thanks in Advance.
2
votes
0answers
13 views

htaccess change default language without changing url

An multilanguage wordpress site has multiple prefixes for languages (si,en,de,...) 1. https://www.example.com 2. https://www.example.com/porfolio/images 3. https://www.example.com/en 4. https://www....
0
votes
1answer
14 views

WooCommerce - Remove variation from product title in order details and email

I have a variation called "China" on some of my products. The way WooCommerce works, is that inside the cart, order details and emails, the variations are being appended to the product title. I would ...
0
votes
0answers
26 views

Why is my hover overlay not working after a website hack?

I'm in the process of repairing a Wordpress website hack, and almost everything is back to normal. I have sought professional help to clean it, replace files, and delete the malware, and it's looking ...
0
votes
1answer
8 views

gzip Compression not enabled

Ok so situation is kind of weird, we had a average godaddy shared hosting plan (now upgraded) with 5 websites hosted on it. All Wordpress websites. one of the websites, on the sub folder, was ...
0
votes
2answers
19 views

Override parent theme files to a child theme in wordpress

I am using Woffice theme in wordpress and i activated the woffice child theme and now i wanted to override parent theme files. This is parent theme folder directory /wp-content/themes/woffice/...
-6
votes
1answer
31 views

implement wordpress plugin with php code project [on hold]

as everyone knows the wordpress plugins are written in object programming, my question was knowing that the plugins refer and recall specific classes within the functions of WP. If it were somehow ...
0
votes
0answers
7 views

How to display nested categories progressively, then products?

I'm using Dokan plugin for Wordpress, and trying to modify the store.php page... Right now, the store features a UL that lists categories, and when you click one of them, it loads the corresponding ...
-2
votes
0answers
22 views

Problem with classified subject for wordpress

It is about the theme "Trade":https://themeforest.net/item/trade-modern-classified-ads-wordpress-theme/20353321 The problem is that when I search for example in the lateral sidebar to limit the price ...
0
votes
1answer
9 views

Woocommerce subscriptions - How to get the trial period in days of a subscription product in woocommerce

I am iterating through all subscription products that appear because of [products] shortcode and I want to do a task if the subscription product has n number of trial period days. How can I get this ...
0
votes
0answers
11 views

WP-Cli doesn't let me move page to parent-page

I have several pages in WP I want to order as parent and child pages. When I try to do this with wp-cli as follows wp post update 1637 post_parent=1638 I get "Error:Unable to read content from '...
0
votes
0answers
12 views

I have some customisation problems in AppPresser for WordPress

I am using AppPresser plugin to convert WordPress site into iOS and Android applications. I could see that I was unable to do the following things: Customize the ActionBar (Android) to add more ...
-1
votes
3answers
34 views

Wordpress - Parts after header won't load

This is the web site i am working on: http://eleganceist.com But unfortunately the sections after head wont load. Error log is full of this: [Fri Sep 28 12:37:48 2018] [error] [client 46.196.24.141] ...
0
votes
1answer
16 views

wordpress and CSP

Did anyone stumble upon trying to secure headers (CSP) in wordpress with several plugins spitting js in the dom? I am trying to enhance the headers with CSP and remove the 'unsafe-inline' in the ...
0
votes
2answers
31 views

How to include external code/library javascript on wordpress?

I want to use a external JS library on wordpress, how I should add it to my wordpress libraries. The library is viewerjs.
0
votes
1answer
20 views

How to assign location based orders to specific users on WordPress (WooCommerce)?

I have a WooCommerce store which is connected to ASP.NET MVC via Woo API. All the order processing is done via the ASP.NET site and I am using Woo for managing subscription only. There are about a ...
0
votes
0answers
13 views

Problems with wordpress and multiple redirect .htaccess

we just changed the web, and when doing the htaccess, there are url that redirects them and others do not, randomly, for example, the first good Redirect 301 /destinos/ /es/destinos/ and this other ...
0
votes
0answers
9 views

how to add woocommerce fee_lines meta

I am currently working with the woocommerce api adding some custom fees. I noticed when querying the api that fee_lines take meta data too: [fee_lines] => Array ( [0] => Array( [id]...
-1
votes
1answer
43 views

how to delete id from MySQL Database using query

I am trying to delete Id on SQL not working i got string(87) "DELETE FROM wp_availability WHEREidIN (Array,Array,Array,Array)" get this kind value if ( count( $remove ) > 0 ) { $...
0
votes
2answers
24 views

update failed during plugin installation of wordpress

I'm trying to install a woocommerce plugin on my wordpress website(locally) it is giving such error 'update failed' as you can see in picture, how to fix this?
0
votes
1answer
27 views

Cannot create a woocommerce search based on custom meta fields

I try to include in my default search custom fields. I followed the link here http://jamescollings.co.uk/blog/extending-woocommerce-search-query-include-custom-fields/ I created a small plugin from ...
0
votes
1answer
9 views

How to edit Wordpress dns-prefetch

How I can try to edit my wordpress dns-prefetch <link rel='dns-prefetch' href='//s0.wp.com' /> <link rel='dns-prefetch' href='//secure.gravatar.com' /> <link rel='dns-prefetch' href='//...
1
vote
1answer
15 views

Setting a tax class based on specific coupon in Woocommerce

This has been answered a while back but the filter is not working anymore. Not sure if it is deprecated or not. I am using both filters: woocommerce_product_tax_class ...
-1
votes
0answers
15 views

Wordpress XML posts export

I need to export my Wordpress (real estate) site into a specific xml file containing all the required tags, so that another site can easily read all my posts and post them to their site. Tried WP All ...
-6
votes
1answer
29 views

how to move dashboard button to website menu if possible wordpress

I want an easier way for our clients to get to the dashboard, please see the screenshot for reference Thanks. http://prntscr.com/kzoz4x
0
votes
1answer
26 views

Wordpress - New posts have stopped showing

I have weird problem with display new posts. Before I made this topic, i try to found answer in google and fix it. Now I write, what i do to this time: Turn on/off every plugins. Still doesnt display ...
0
votes
0answers
22 views

Loading another URL keeping current URL (Apache/htaccess config)

My client has a website in which there used to be a WordPress blog at the URL mysite.com/blog/ Due to some issues, they moved the blog to a different server and it is now hosted at the URL blog....
1
vote
3answers
29 views

How to display posts of taxonomy in WordPress page template?

Not sure if this has been asked before, but I'm a bit lost. I've created a "Newsroom" Pods with a custom taxonomy of Newsroom Category. Newsroom Category has 3 fields: Press Release, Media, Others. I ...
0
votes
0answers
6 views

Redirect all pagination archives to its first parent

i've a doubt concerning Redirect or mod_rewrite paginations in wordpress. I want to redirect all archives to its first parent. For example, if we have: https://www.abcde.com/funnycategory/page/1/ ...
0
votes
0answers
26 views

Set up attribution through tag manager, not sure if the syntax is right

For a multiple domain site I have set up a way to measure if conversions come through AdWords or E-mail by creating a cookie of the UTM-Medium UTM Tag. Now this worked nicely on my product pages ...
0
votes
1answer
18 views

How to add a category image menu to my shop page?

I want to add an additional menu consisting only of the product category images. I'm using woocommerce. I would like it to be centered in the middle of the page and drop down. What kind of short code ...
-1
votes
1answer
25 views

Output the first paragraph in a Wordpress post

I want to put just the first paragraph of my posts on my index.php in my functions.php I have <?php { global $post; $output = get_the_content(); $wanted_number_of_paragraph = 1; $tmp = ...
1
vote
0answers
10 views

How to show zip validation in stripe payment inline form in wordpress

I am using woocomerce in wordpress .In woocomerce, for payment I am using stripe. Now I want to add zip code validation in the stripe payment from. I have read stripe documentation and found some code ...
0
votes
1answer
18 views

How to POST image to WordPress by React Native

My english not good, hope u can understand me. I'm trying to POST a media file to WordPress by ReactNative. But when i send request it allways respone that fail. When i GET posts and another data that ...
-3
votes
1answer
27 views

How to edit the content of a website built on wordpress?

I am working on a website in which I want to edit the content of a wordpress website. After log-in inside the website for the same homepage, I see the following screenshot but don't see anything in ...
-1
votes
0answers
10 views

Wordpress peer to peer video chat(Admin to user) plugin or paid service

I have to implement Peer to peer video chat on WordPress recommend any integration or service from third party on economic price
0
votes
0answers
8 views

Gravity Forms: Grouped conditional confirmations

I know in Gravity Forms you can have condition-based confirmations, however is there a plugin or even programmatically where it's possible for the conditions to be grouped? Eg. rather than having 1a ...
0
votes
0answers
11 views

Reverse Wordpress SQL CASE Expression

I was working on the search result and got some answers from the support, so I add the code inside the function.php which is working fine, but the search result is kind of odd. 1. How do I hide ...
-3
votes
0answers
17 views

Use inline error and thank you message for mailchimp sign up form?

I just created a form from Mailchimp's form builder. It was able to submit and save details successfully however I want the error messages for validation and thank you message to appear on the form (...
0
votes
1answer
27 views

Not Seeing All The Post Objects?

The code below pull from wordpress website via the REST API, however there's one major problem with it: It's seeing 10 posts out of 98. I should see all 98 shouldn't I ? Since I'm using a flatlist ...
-3
votes
2answers
19 views

sticky row in wordpress [on hold]

I am developing a website in wordprss. I need a parallax effect like the webiste below has done. https://www.jhu.edu/ how can do this effect on page scroll?