All Questions

0
votes
0answers
3 views

Add Index to Item in Wordpress Gallery

I'm creating a gallery of images using the [gallery] shortcode and Jetpack's tiled gallery feature. When the user clicks on an image I'm triggering a carousel (Owl Carousel) with carousel.trigger( 'to....
0
votes
0answers
2 views

How to make save for later and history read for logged in user?

I want to make a feature like save for later widget and history list for logged in user, should I use database, jscookie, or local storage for save the data for user. And how to make it?
0
votes
0answers
5 views

How to prevent deleteting specific user?

I've create user called 'root' and I want to prevent to be deleted. How can I do that in back-end, without any plugin?
0
votes
0answers
6 views

Clear out old images, any advice?

I'm working on a site which has a media library that is now 7GB - and I really want to clear out all the unused images. I've tried using the Media Cleaner Plugin: https://wordpress.org/plugins/media-...
0
votes
0answers
5 views

Wordpress Woocommerce digital products when set files to X-Accel-Redirect/X-Sendfile disables preview

Wordpress Woocommerce digital products settings done to X-Accel-Redirect/X-Sendfile disables downloads. But now it disable preview . i want to preview but no download.
0
votes
0answers
12 views

Hiding users on WP - works on localhost, not on target hosting

I use this code snippet for hide specified user in WP: add_action('pre_user_query','yoursite_pre_user_query'); function yoursite_pre_user_query($user_search) { global $current_user; $username = $...
0
votes
1answer
7 views

Change tax-setting from a dropdown (WooCommerce)

I had made a WooCoomerce shop in Wordpress. I want to make a dropdown, there the customers can choose with tax or without tax for all products. How can I made this? Best regards Oscar
0
votes
0answers
13 views

Deliver WordPress site from a CDN? [on hold]

I'd like the entire site to be delivered via CDN. I mean everything, not just static resources. The HTML page. The idea is to serve the static HTML generated by caching plugins (super cache, w3, etc) ...
0
votes
0answers
17 views

Show products as posts on archive page

Usually products on shop pages show up with a single featured image title price and add to cart button like this https://prntscr.com/ngn7o6 , and do not follow the themes original styles and settings ...
0
votes
0answers
17 views

Custom post status not working in REST API

I am trying to add a custom post status to my custom post types using thefollowing code: // Register new post status function my_custom_status_creation(){ register_post_status( 'approved', array( ...
0
votes
1answer
12 views

my images are not showing when i upload them, they apear as placeholders

the image has a the correct format. the image url is correct but some how the image is not showing this error happened after website was migrated Please help
0
votes
0answers
11 views

Authenticate my WordPress Plugin Client via OAuth2 “Authorization Code Grant”

I am about to create a WordPress Plugin with Client functionality. I basically want to post wordpress-data to a remote server using the servers REST-API (short overview: I want to simultaneously add ...
0
votes
0answers
13 views

Executing third party plugins shortcodes in the backend

I'm developing a plugin that creates pages in admin menu. I want to be able to do it using page builders, for now it's WPBakery, but when I look at my page it's just a bunch of shortcodes like [vc_row]...
1
vote
1answer
11 views

Where can I find my blog page?

I recently learned about the differences between home.php, front-page.php, and index.php. I rightly created a front-page.php to handle the Landing page, a home.php to handle the blog (posts list) and ...
2
votes
0answers
33 views

Email notification after registration in Wordpress

I would like the site's administrator doesn't receive a new user's registration email when the administrator himself uses the admin interface to add a user. How can I limit sending a email only when ...
2
votes
0answers
19 views

How to Replace Words with Hypertext Link But Ignore Previously Existed Links?

Auto-linking for "selected words" in the_content I am currently using the following code: function wp_affiliate_links($text){ $replace = array( '/ example /' => ' <a rel="nofollow" href="...
0
votes
0answers
10 views

Login as non-admin user removes Dashboard submenu. I wish to re-enable it

Ideally, since the "Dashboard" submenu is gone for authors, I just want to replace it with a single link that pulls up the wp-admin home page. Just re-enabling Dashboard>home would work well too.
0
votes
0answers
11 views

Tax are not showing on order while placing order with REST API

I'm trying to placing order with REST API which will use for android app. I've used wc_create_order() for placing order but I didn't getting tax values as I got in web view. What I want - I need to ...
0
votes
0answers
11 views

Wordpress membership exports from our database contain duplicated names

Our wordpress database shows a certain number of active members. Every export raises this number by about 200 members. In fact, the export sometimes has the same member's name and email listed 3 times ...
1
vote
0answers
12 views

Add a default WP comment form to forum template

I've learned that it is possible to add a default comment to the custom post type: https://codex.wordpress.org/Plugin_API/Filter_Reference/comments_template However, what if in case of not custom ...
-1
votes
0answers
13 views

Woocommerce prescriptive and non-prescriptive products

Woocommerce Website : The Pharmacy Website is intended to be a presentation site, and online store with prescription ability, for the use of medical practitioners. The site needs to function as an ...
2
votes
1answer
396 views

Why WordPress uses 4 tables to manage terms

I am a PHP developer and recently I am trying to build a platform which needs lots of categories/filters/tags some in hierarchy some not. So the question is... I am able to manage terms in these ...
-1
votes
0answers
18 views

Wordpress theme says not activate now enter purchase code

I have worked with a client. His website is about ecommerce and he is using sw maxshop theme. It is a premium theme. When I logged in to his dashboard it says theme is not activate now please fill ...
0
votes
1answer
19 views

How to I change the value of a custom field on the home page?

I'm new to WordPress and have inherited a site that uses Custom Fields. In header.php there is; <?php if(is_front_page()) : ?> <div class="row"> <div class="col-md-4 header-...
1
vote
1answer
22 views

“add_theme_support” for custom footer color?

I've seen theme support (add_theme_support) for "custom-header", "custom-background" and "custom-logo", but not for footer (footer colur or image). Is there no option to let users choose footer ...
1
vote
1answer
18 views

My Main Query Modification is Messing up my dynamic main - why?

This has been very difficult to track and I have enabled only the plugins I need (ACF and my own plugins that deal with content type creation). I noticed that on some pages, my menus were gone, this ...
0
votes
0answers
12 views

Change WooCommerce Add Product To Order Behaviour

I Want to alter the behaviour of the search function in WooCommerce order edit page, when we search a product to add into de order: Someone knows what is the name of the function that receive the ...
0
votes
0answers
13 views

Custom Post Type with categories permalinks

I created custom post type named "Bikes" and four categories (Road, Scooter , Offroad and ATV) and each category have subcategories which I can use to assign custom post entries to. So when I viewed ...
0
votes
0answers
3 views

Is there a chat room for Wordpress.stackexchange.com? [migrated]

Some stackexchange sites like StackOverflow have chat page. Does WordPress.stackexchange.com have something similar?
0
votes
0answers
13 views

When searching, dashboard query hangs because of “GROUP BY wp_posts.ID”

The problem is that I have a relatively simple post type with two custom fields that need to sort depending on those fields. I have all of this hooked in to pre_get_posts (along with some other sort ...
0
votes
0answers
21 views

Piece of code on top of pages? [on hold]

I noticed something odd on my website. On top of every page there's something that looks like some piece of code: "/>. There's no error, and it only shows on top of posts pages, not the homepage. The ...
0
votes
0answers
19 views

Where to find Wordpress developers for hire? [on hold]

Normally I would ask this in the forum chat but I don't see one for this forum. Is there a place I can go to find WordPress developers for hire for questions (for questions beyond the scope of this ...
0
votes
0answers
14 views

Gutenberg sidebar example does not update meta field in the database

Gutenberg example for creating sidebar https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/plugin-sidebar-0/ does not keep what is entered in the box. After refreshing ...
2
votes
2answers
21 views

Show missing Sidebar from Gutenberg admin area

I hid the custom sidebar from Wordpress example https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/plugin-sidebar-0/ by pressing remove from toolbar star in the panel. ...
1
vote
1answer
29 views

Need of separate security plugins for both root and subfolder sites Wordpress?

In Wordpress, I have my main site at www.MySite.com Planning to start a forum at www.MySite.com/Forum (Subfolder) Do I need to have separate security plugins, for e.g. Wordfence at root & ...
1
vote
0answers
19 views

Custom post type permalink changing itself every other change

I have created a parent > child > grandchild structure. (Courses > Series > Episodes). I have created the below code which updates the urls for each of the custom post types so that I can have the ...
0
votes
1answer
15 views

How to configure my blog page

I've been learning WordPress for about 2 weeks now and I've got stuck in the "front-page.php", "index.php" and "front-page.php" controversy. Here's my question.. How can I make the /blog use the home....
0
votes
1answer
13 views

Warning and fatal error

I am getting this error when running my website : Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'sanitize_comment_cookies' not found or invalid function name in ...
0
votes
0answers
16 views

Customize Search Results Body Content

Is there a way to customize the search results page to show the original text formatting in the post_text_inner class as its seen on the original post or portfolio page instead of showing everything ...
0
votes
0answers
8 views

Custom post type category Page not showing post of particular category

I have created a custom post type "Highlights" function create_post_type_highlights() { register_post_type( 'highlights', array( 'labels' => array( ...
-1
votes
0answers
29 views

admin-ajax.php not working on ssl

one of my client's site uses a plugin which loads data through ajax on clicking a button. It sends request to this URL upon button click: http://example.com /wp-admin/admin-ajax.php?_fs_blog_admin=...
0
votes
0answers
5 views

Embedding Links to WPForms on a WP Page

I am not a developer but a new administrator on a website. I am trying to embed the provided WPForms link into the new WP Page I just added to this website. The link appears twice on the same page and ...
1
vote
0answers
12 views

Automatically list top level menu item child pages

I am building a website that has a lot of pages. The client is not a big fan of the Wordpress menu builder works (in appearance -> menus), and we have come to the conclusion that the best way for the ...
-1
votes
0answers
10 views

Ajax post_tag in custon taxonomy

I am trying to add a post tag taxonomy (taxonomy = post_tag) in another taxonomy (taxonomy = category), as if it were a post. any ideas? Thank you very much. Good afternoon.
0
votes
0answers
4 views

Change background of woocommerce /product-category page [migrated]

I cant seem to find how to change the background of the woocommerce /product-category page. I've changed the archive and single product pages using this css: .woocommerce.post-type-archive-product { ...
0
votes
1answer
18 views

Changing Woocommerce flat rate every nth number of items

I found a semi-functional solution for my problem in this answer WooCommerce - Flat rate shipping based on X quantity steps? But this counts the total qty of the cart items which it doesn't quite work ...
0
votes
0answers
14 views

Advanced Custom Fields - Custom conditional logic/pass logic between field groups

I'm wondering if it's possible for me to use ACF's conditional logic, to pull in a value from another field group on the same post. For example, I have a custom post type of 'Locations'. In each '...
-1
votes
0answers
14 views

Backgrounds Lite for WP

I installed WP-Backgrounds Lite to my WP website, which uses the 2015 theme. Prior to this, I had set a carved stone image as background, which causes every page to have that. After installing the ...
0
votes
1answer
12 views

Calling a python script from custom wordpress rest api returns null

So, I have a python script that uses machine learning models to predict and print a string. Running the script alone gives desired output and takes around 12 seconds to complete. Now calling the ...
0
votes
0answers
19 views

Change the column by which pages are sorted by default [duplicate]

A very simple question - how do you change the column by which they are sorted by default? It always sorts by Date, even though I keep changing it to Title.

15 30 50 per page