Skip to main content

Unanswered Questions

2,937 questions with no answers
4 votes
0 answers
208 views

Is it safe to delete from db orphaned posts i.e. whose post_parent no longer exists?

I inherited a couple of WP + WooCommerce shops with roughly 30,000 products for sale each, and a wp_postmeta which is over a million lines. The former webmasters ran away. In an effort to clean up old ...
4 votes
0 answers
2k views

get_permalink returns default link

I hope you can help me. So I'm using /%postname%/ as permalink structure, and my htaccess looks like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /develop/...
4 votes
0 answers
194 views

permalinks with get variables

I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows add_filter( 'query_vars','driver_vars' ); function driver_vars( $vars ) { ...
3 votes
0 answers
90 views

Child post with numeric only slug keeps redirecting to parent

I modified the allow-numeric-stubs plugin code to work with CPTs. You can view my forked repository here: https://github.com/akshatkedia/allow-numeric-stubs WordPress is now allowing numeric slugs for ...
3 votes
0 answers
394 views

How to fix wrong attribute error for Visual Composer Grid Builder?

Hello I am facing this issue in editing media grid layout of Visual Composer V6.2.2. Below is the error I am getting Fatal error: Uncaught Exception: Wrong attribute for 'vc_single_image' shortcode. ...
3 votes
0 answers
875 views

Using 'Primary Category' in URL

I'm running into an issue where I want to set up categories in my URL (%category%/%postname%), but doing this will create multiple URLs for the same content if I select multiple categories. So, for ...
3 votes
0 answers
294 views

WooCommerce Subscriptions: Show monthly Price for annual Product

Using WooCommerce Subscriptions, is there a way to show a monthly price as well as a "total duration" price? On my site I have subscriptions for a month and others for a year. Those for a year look ...
3 votes
0 answers
1k views

Is it possible to intercept all ajax requests and get the parameters and the returns?

Is there any hook that always goes through it, where I can see all the requests, and also the returns after the "action" that is executed? I need to intercept all requests, including requests from ...
3 votes
0 answers
78 views

How to find out what blocks are added by a plugin

I am creating a plugin, which adds a number of blocks defined by JS/PHP as per Gutenberg documentation. I want to display these block names on an admin page. Is there a hook or function I can use ...
3 votes
0 answers
2k views

Add parent/child taxonomy to custom post type url

I have seen several cases of one taxonomy being added to a custom post type url, but I have modified that function to include a parent and a child taxonomy term. However, I am getting a 404 when I go ...
3 votes
0 answers
50 views

Yoast SEO blocking/re-initialising longer running process

I have created a custom plugin, the job of which is to calls an external API to fetch data and fill in some custom tables in WordPress database. This is really a long-running process (maybe over 30 ...
3 votes
0 answers
1k views

Add Product categories to Wordpress menu without losing hierarchy

I need to add product categories to Wordpress menu, but when I'm doing this with WP interface it lose the hierarchy I tried with WP-CLI, but there is no method to specify wich item is the child. ...
3 votes
0 answers
259 views

rewrite_rule for custom post type doesn't affect get_permalink

I have a custom post type named course. I added rewrite rules so I can include post_meta data in the URL. /* Rewrite URLs for generate dynamic template */ add_filter( 'generate_rewrite_rules', '...
3 votes
0 answers
480 views

Install plugin remotely

I have seen a couple services ( ManageWP, BlogVault ) where we supply them with the admin login details to our WordPress site and they programmatically install their respective plugin and then connect ...
3 votes
0 answers
190 views

Add 'articles' prefix before blog posts url without affecting pagination

I tried this solution for adding 'articles' prefix before blog posts on URL. function filter_post_link($permalink, $post) { if ($post->post_type != 'post') return $permalink; return '...

15 30 50 per page
1
2 3 4 5
196