Unanswered Questions
4,269 questions with no upvoted or accepted answers
10
votes
1
answer
983
views
Custom Taxonomy Endpoint Pagination using paginate_links()
The Setup
I have 2 taxonomies and 1 post type:
Post Type: products
Hierarchical Taxonomy: product_cat
Nonhierarchical Taxonomy: product_type
The product-category has a defined endpoint:
...
6
votes
0
answers
611
views
How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
If I want to extend the core block I can use Block Filters where I found a filter like editor.BlockEdit.
Example from doc:
const { createHigherOrderComponent } = wp.compose;
const { Fragment } = wp....
6
votes
0
answers
521
views
Gutenberg Blocks doesn't render correctly when using do_blocks
I'm trying to render a post_content with blocks using the do_blocks function, that takes a gutenberg content, parses every block, and returns an HTML string.
The problem is that some blocks aren't ...
6
votes
0
answers
1k
views
WordPress REST API call generates nonce twice on every call
I'm trying to login a user via the REST API, and then retrieve the current user on subsequent requests. As per the documentation, in my plugin, I am creating and retrieving a nonce after a successful ...
6
votes
1
answer
395
views
How can I safely increase the character limit for post passwords?
When I want to protect a post on one of my blogs, I like to use a passphrase instead of a password (albeit purely for the sake of creativity, not security — they're stored plainly anyway). However, ...
5
votes
0
answers
1k
views
Exporting revisions
How do you export revisions for posts?
I cloned a site with it's complete Wordpress DB 4 months ago.
After the clone revisions have been made to the existing posts and new posts has been added to ...
5
votes
1
answer
777
views
WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix
I'm looking for some extra information about an mu site (--url) when attempting to export from a remote server to my local testing environment.
One requirement for migration is the existing blog_id ...
5
votes
3
answers
1k
views
Making plugin unique to not conflict with plugins with the same name
I have plugin that has the same name as other plugin uploaded to wordpress.org
How can i make it unique so it doesn't share "View Detais" link and auto-update with other plugin uploaded to wordpress....
5
votes
1
answer
4k
views
I want to load post content by categories using Ajax
I have question.
I would like to load post content, custom post, depends on category.
So first of all I would like to have drop down menu which will list all my categories then once user will select ...
4
votes
0
answers
1k
views
Developing the save function in Gutenberg blocks
I am editing the save function on my local wordpress instance. Every time I make a change, I need to manually click the "Attempt Block Recovery" button to see the updated change when I go to ...
4
votes
1
answer
679
views
How to save block attributes when the output doesn't change
I have a block with some settings that affect the editor only. So not the output. The issue is that when I change these settings, the output doesn't change. Then Wordpress does not detect the change, ...
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
331
views
How to disable "Transform to" option in Gutenberg custom blocks
I prepared some non-standard Gutenberg blocks.
They have a very specific purpose. Therefore, I do not want them to have the Transform to option available.
What I found is the ability to use support: {}...
4
votes
0
answers
76
views
Using Primary Color in Plugin Block
I'm developing a Gutenberg block, and I want the block to fit in as nicely as possible with the users site. So I'm trying to include as little styling of my own as possible, eg. allowing buttons to ...
4
votes
1
answer
3k
views
Strange characters on wordpress site - Not UTF8 Issue
I've imported WordPress post data onto a new site and noticed I have strange characters showing on pages and Blog posts.
It usually shows where apostrophes should be.
I've searched multiple ...