Newest 'wordpress' Questions - Stack Overflow

Questions tagged [wordpress]

This tag is for programming-specific questions about the WordPress content management system. Off-topic questions include those about theme development, WordPress administration, management best practices, server configuration, etc. These are best asked on Stack Exchange WordPress Development.

0
votes
0answers
5 views

My Wordpress website homepage showing User-agent:* Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php

i was changing permalink settings from plain to postname, then this happened tried changing to default permalink, removed plugins, User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php
0
votes
0answers
6 views

ACF repeater field on Custom post type taxonomy returns errors (Timber theme)

I have created a custom post type and its taxonomy. I also have ACF repeater image field to the taxonomy, but every time when I add image to the field, there are errors like this. Warning: ...
0
votes
0answers
11 views

Generating shortcode and displaying in admin area

Basically I'm writing a plugin to create sliders. Upon installing this plugin, it creates a custom post type called 'sliders' and populate them with ACF. I've also created shortcode to display slider ...
0
votes
0answers
7 views

WordPress loop by meta key that is an array? and how loop multiple arrays

How can I get loop of posts by meta values that save in a meta_key that is an array like that Array ( [0] => Array ( [plan_name] => name 1 ...
-3
votes
0answers
14 views

Cannot redeclare class WP_REST_Search_Controller

i have error in my website word press when i want add new post its give me error with new white page msg : Fatal error: Cannot redeclare class WP_REST_Search_Controller in /home1/alfadhmh/public_html/...
0
votes
0answers
22 views

How to fetch specific json Field from woocommerce rest api

I have fetched json data using woocommerce rest api from my wordpress'website and the response is like this : [{"id":4077,"name":"Work Benches","slug":"work-benches","parent":4076,"description":"","...
-1
votes
0answers
12 views

Disambiguation does not work on WordPress plugin

I am very new to chatbot. I am trying to plug in my Watson chatbot to Wordpress (version 5.2.1) installed on server by Docker. I do not code but do everything on websites. My IBM account is a ...
0
votes
2answers
14 views

How to loop multidimensional array with condition and count it on another Wordpress page

I have an array of database from a Wordpress page: dev-user-20190424.php <?php $wb_users = array( array( "Username" => "Azmina", "Level" => "form-5", "School" ...
0
votes
0answers
10 views

Create WooCommerce order from product list — bulk actions

I would like to be able to manually create an order in the backend of WooCommerce by selecting specific products. A new order would be created with the selected products. Is it possible to add a "...
0
votes
0answers
15 views

WordPress content is using br instead of p

This is not asking how to turn off auto-paragraph formatting Pretty much the opposite - I am using wpautop, but it's not doing paragraphs like I think it should. The problem I'm having is my ...
1
vote
0answers
18 views

How to email HTML inputs from page to user via a separate contact form

I have a number of HTML inputs that users control as part of a Javascript-run calculator (i.e. they input their age, income, etc. and the script spits out a number) How can I use a separate contact ...
-3
votes
0answers
14 views

How to set/overwrite variation sale price from the custom field programatically base on the custom field

add_filter( 'woocommerce_product_variation_get_sale_price', 'custom_dynamic_sale_price_variation', 10, 2 ); add_filter( 'woocommerce_product_variation_get_price', '...
0
votes
0answers
14 views

How to edit color of dropdown selection for add to cart widget for woocommerce?

I noticed that the dropdown selection for add to cart has a default color of white/blank and each selection can only be seen when the cursor hovers over each selection highlighting each word. I would ...
0
votes
1answer
11 views

Problem with generating random string and save into user meta field in wordpress

The code must create a random string of numbers and letters and add this as meta field of wordpress user. This code cause the User Add section to output errors like: Fatal error: Uncaught `...
0
votes
1answer
20 views

Passing PHP variable to vue.js vue component

I am working on a wordpress site where I need to pass a php string variable to a .vue component so that one of the vue variable will reflect the value of the php varaible index.php <?php $foo = ...
0
votes
1answer
10 views

White box over content (mobile view)

I have a white box covering my content when viewing the website on a mobile phone not including tablets. It occurs once at the top under the first image slider, then again towards the bottom of the ...
0
votes
0answers
8 views

Pull in WooCommerce Add to Basket and Quantity on ACF powered pages

I have several ACF powered pages making use of a particular ACF field group. Essentially, there are a ton of ACF fields giving the client flexibility to build pretty nice looking pages. I've decided ...
0
votes
0answers
7 views

Ionic v3 + WordPress JSON API Rest + Deep links

I dont have code to paste here, im sorry. I read a lot about this (https://ionicframework.com/docs/v3/native/deeplinks/ and from what I understand, you have to generate the deep links manually. My ...
0
votes
0answers
9 views

How to sync Active directory User group’s with WordPress?

I am trying to sync Active directory user groups with WordPress. As a first try, I used External plugin “Next Active Directory Integration” without a 100% success. Let me share my learning's below: ...
0
votes
1answer
9 views

uploading jpg to wordpress site gives permission denied

I'm trying to upload an image via Wordpress, I get an HTTP error. When I use FileZilla, it gives "permission denied" error. When I right click the folder "uploads" and choose file attributes, it ...
0
votes
0answers
8 views

I need help making a video fit my site on both destop and mobile

I cant seem to figure out how to make my twitch live stream fit either my desktop or mobile site properly. I'm using 100% on width which works fine but when I use auto or 100% on height, its too short,...
0
votes
1answer
6 views

How do I add a class to qp_nav_menu <a> tag?

So I've been beating myself up over this for two days. I just need to add the bootstrap "nav-link" class to my tags withing wp_nav_menu. Here is what I've currently got. header.php <?php ...
-1
votes
2answers
42 views

What is the best way to identify unnecessary code that can be removed to speed up my Wordpress page? [on hold]

I am trying to improve the site speed of this site: https://findmyforte.co.nz/ If I create a new blank page, even the blank page ranks badly for site speed on PageSpeed Insights. I assume this means ...
0
votes
1answer
19 views

How to highlight current child page on custom sidebar menu?

I have a sidebar menu on a WordPress site that simply outputs all the child pages under that parent. I'm trying to highlight (or hopefully add an arrow) the current child page that is selected. I've ...
0
votes
0answers
10 views

Wordpress Ubuntu redirects DigitalOcean Issue

Good day: I have my website in digitalOcean, in Ubuntu Droplet. I have both Wordpress site and CakePHP sites. CakePHP is working well. Wordpress I have a little issue: If I access for example www....
1
vote
2answers
15 views

Wordpress PHP Snippet to redirect link to another link

I want to redirect a custom url to another custom url in the website using a php snippet without .htaccess I tried the code below but it doesn't work add_filter('get_the_permalink','...
0
votes
0answers
9 views

How to create custom comments subpage (administrator screen) for custom post type/predefined language?

I'm using wordpress along with WPML plugin. I've created custom post type which isn't related to any language and allows comments. Because it is not related to any language, comments to this custom ...
-3
votes
0answers
17 views

Why is my website exceeding max questions?

This is my first post, and I apologize for being such a noob. I have started to develop a website using Wordpress. It is very basic at this stage. Only a few pages, some plugins and no additional ...
-1
votes
1answer
34 views

Defining secondary functions in php

I have this php: // Remove At a glance unset($wp_meta_boxes['dashboard']['normal']['core'] ['dashboard_right_now']); // Remove Activity unset($wp_meta_boxes['dashboard']['normal']['core'] ['...
0
votes
0answers
12 views

Use another wordpress uploads directory as main wordpress upload directory

site1 (default wordpress site ) and site2 (second wordpress site) are in same hosating one of maiin domain and another as addon domain. Can I define a function that have access out of wordpress ...
-3
votes
0answers
17 views

How can I make the contents of the Wordpress checkout form fit onto one page? [on hold]

I'm editing a Wordpress ecommerce site and the contents on the check out page are arranged vertically and take up about 4 pages. Before, it was on one page and the contents were displayed on two ...
0
votes
0answers
16 views

How to fix wordpress permalinks flip in hebrew [on hold]

I have a Wordpress website in hebrew. My problem is when have a parent page and a child page, the child page url permalink is backward. I want first the parent url then the child. When click Edit it ...
1
vote
1answer
20 views

HTML only print once in Wordpress Loop

I have a code chunk that is inside the_content(); I'm using acf repeater as well. So when I post a blog, I'll either use the_content(); or the acf field. I have h2 tag ( latest articles ) that I only ...
0
votes
1answer
17 views

Can't reach a Wordpress website through nginx-proxy in Docker

I'm trying to reach my existing instance of Wordpress through a Docker configuration. My plan is to have a few websites running on my VPS, so I wanted to go for this Docker setup. First, my jwilder/...
0
votes
1answer
12 views

Prevent server-side caching in wordpress when using file() function

I'm displaying the most recent version of a simple .txt file on a wordpress page. This file is generated by other processes on the server (outside of wordpress) and can be updated every few seconds. ...
0
votes
0answers
12 views

How to display user email & phone in gravity form radio buttons which user has entered in first field [on hold]

I want to show email & phone number of user which I collect in first mention fields of gravity form and now i want to display their details instead of email & phone text. Here is the image of ...
-1
votes
0answers
8 views

WordPress, resized image download using URL only

I need to download the resized image directly from WordPress using its URL only, something like : https://wordpresssite.com/wp-content/uploads/2019/06/imagefilename.jpg?w=300&h=300&&crop=1 ...
0
votes
0answers
18 views

Cannot access static files of WordPress docker container over HTTPS

I am trying to create a WordPress container over HTTPS, I have Apache running on the VPS and using it as a proxy to route requests to WordPress container. I've managed to access the container to load ...
0
votes
0answers
18 views

How can i change woocommerce product price on custom page, when i have some GET params?

I have woocommerce products with regular price and sale price. And i have users, who came from special url with GET param like: site.com/customcart/?emailsale=true How can I make regular users ...
1
vote
1answer
12 views

Wordpress redirect when clicked on post

This is what I have / trying to achieve: I have some posts. When someone clicks on the post i do not want it to be opened. Instead, I want that the user would be redirected to url that is associated ...
0
votes
1answer
12 views

How to Update Custom Fields Using json API

Im using json-api plugin in wordpress to connect my DB info to an phonegap app i'm developping, i need help on how to change custom fields array using de update_post from the API. can anyone give me ...
-2
votes
0answers
18 views

How to modify a simple filter drop-down to Full screen filter selection

I am trying to modify a drop-down filter selection to full-screen everything seems to be fine just one thing is not working correctly. When I click on "Make" button it somehow picks nearest ...
0
votes
0answers
19 views

Background music not working on mobile browsers [duplicate]

I'm making a WordPress website and I want to put background music. The problem is whatever I try it just doesn't work on mobile browsers. I tried a lot of plugins and decided to try with HTML5 and JS....
0
votes
0answers
16 views

Dynamic Block - How to create dynamic stylesheet on post save / load

I've created a working Gutenberg Block with Create Guten Block (https://github.com/ahmadawais/create-guten-block). Currently it's only working with inline-styles, but as a requirement I have to avoid ...
0
votes
2answers
25 views

Add content between <nav> and <ul> in WooCommerce account

I'm making a custom dashboard for WC and need to add content just between the nav and ul elements in WooCommerce's menu in dashboard in the easiest way. I've seen there's a hook called ...
0
votes
0answers
9 views

WPBakery Page Builder - WordPress (No change possible)

I am using WordPress 5.2.2 with Funvita | Business Consulting WordPress Theme When I try to edit page using WPBakery Page Builder I can't do that. WPBakery Page Builder not responding and I get error ...
0
votes
0answers
10 views

TypeError: Cannot read property 'data' of undefined Gatsby Wordpress Netlify

I'm trying to deploy my gatsby site connected to a wordpress database. But it doesn't work. The error says that it can't recover the data yet I put the configs in gatsby.config 3:58:01 PM: 3:58:01 PM:...
0
votes
1answer
14 views

ACF - updating field name and key

I'm facing a big refactor job at one of my clients. Currently, we have a regular occurrence of more than 3 fields with different field name/key that contains the same information. We only want 1 field ...
4
votes
1answer
39 views

Following a Udemy Wordpress lecture - Live Search Bar destroyed my code

So i was following this udemy course https://www.udemy.com/course/become-a-wordpress-developer-php-javascript/ im at this point that i should make a live search bar, but eventualy i get an error and ...
0
votes
0answers
12 views

Woocommerce Function to Ajax

I'm trying to convert a php code i wrote to show the results with Ajax instead of reloading the page and then showing the results. So i made a custom function that put the variation SKU of ...