Unanswered Questions
3,478 questions with no upvoted or accepted answers
3
votes
0
answers
169
views
Singular name Plugin localization
I'm trying to localize the singular name of a custom post type.
...
'singular_name' => __('key', 'plugindomain')
...
I created a .po and compiled it as .mo. I also loaded the translation using ...
3
votes
1
answer
1k
views
Ajax post filter by taxonomy
I want to make a filter width more than one tanonomy width ajax and jquery,
The demo i want to code is: http://gycweb.org/resources/
I have tried to code with this demo: http://dinhkk.com/demo/...
3
votes
1
answer
2k
views
How do I sort posts by custom taxonomy?
I am trying to sort posts by custom taxonomy. I have a custom post type which is course-cpt and I have created custom taxonomies within it, I need to sort the courses by course-level (which is the ...
2
votes
0
answers
40
views
Ways to reduce code duplication when creating custom blocks
I'm a bit of a rookie, so I may be looking at this all backwards - but if that is the case having someone point me in the right direction would be incredibly valuable!
I'm creating a few custom blocks ...
2
votes
0
answers
58
views
Using @wordpress/scripts 28.x with WordPress <6.5
I am currently looking for a way to use the current @wordpress/scripts 28.x in a plugin with WordPress 6.5 or older. According to the tip here, you should deliver the jsx-runtime via webpack, but ...
2
votes
0
answers
400
views
Gutenberg move post/page title to Editor sidebar document panel
I have not liked the way that the post/page title in Wordpress 6 / Gutenberg is contained directly in the block editor. I have found many ways to remove it with filters and / or restyle it but ...
2
votes
0
answers
48
views
configure additonal build files in the @wordpress/create-block
I'm using the @wordpress/create-block package to create my block plugin. It comes with preconfigured webpack settings to build all the assets. By default as js in the src/ folder is built in the build/...
2
votes
1
answer
496
views
Set srcset on a block image
I'm trying to set the srcset property of a block image.
I'm replacing the image with another one and I noticed the attribute srcset is not being set, so I'm trying this with no success:
wp.data....
2
votes
0
answers
893
views
Custom WP Rewrite Rules and Templates Incompatible with Full Site Editing Themes
WP Rewrite Rules, Custom Templates, and Full Site Editing Themes Compatibility
I'm developing a WordPress plugin that adds a custom rewrite rule using add_rewrite_rule() and loads a custom template ...
2
votes
1
answer
43
views
Is it possible to use a post name in a custom post slug?
So I have custom post type called Lessons and I am using something like this for the slug
register_post_type( 'Lessons',
// CPT Options
array(
'labels' => array(
...
2
votes
1
answer
317
views
How do I display and edit other posts within the 'Edit Post' area of Wp-Admin Dashboard
I'm wondering how to edit the 'New Post/Edit Post' area of Wordpress.
I want to create a new 'Screen Element' like the plugins do.
I want this area to display all posts with a corresponding taxonomy ...
2
votes
0
answers
217
views
Query custom post type and group by taxonomy
I struggle a bit with my piece of code - it's main goal is to show list of custom post type (called "career") childs grouped by custom taxonomy.
How it should work?
A user see default list ...
2
votes
0
answers
37
views
Wordpress custom link with my plugin
I wrote a plugin that stored table wp_example(id, title, content, desc). It doesn't use post/page type.
I want to add a link to the fontend, like index.php?option=my_plugin&show=all. If I use this ...
2
votes
0
answers
83
views
Hide categories that are not used in the post type
I have a situation where I need to display categories on the Archive Page of CPTs, but if the category is not used anywhere in the CPT, it needs to be excluded from the list.
For example, I have a CPT ...
2
votes
0
answers
159
views
Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
Background: I have a plugin with the purpose of changing up the indexes on some of WordPress's tables to make them more efficient for large sites. The plugin changes some primary and other keys for ...