Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
7
votes
0
answers
476
views
Wordpress: Can I add categories/tags to all sites in my network at once? [merged]
I've installed Wordpress 3.1.2, and have enabled the multi-site network. Each employee in my department can now have their own company blog.
I was hoping to provide a bunch of pre-defined categories …
7
votes
0
answers
3k
views
add_rewrite_endpoint() not working for custom post type archives
i'm working on somekind of wiki/encyclopedia system based on wordpress.
there are two custom post types. i'll show my configuration for one of them:
$labels = array(
'name' => _x('Objects', 'pos …
6
votes
0
answers
2k
views
How to trigger JS in gutenberg page load
I've loaded a jQuery script with enqueue_block_editor_assets for gutenberg and wp_print_scripts for frontend which is loaded fine.
add_action( 'wp_print_scripts', 'sk_load_script' );
add_action( 'enqu …
6
votes
0
answers
628
views
How to load paginated post pages via ajax
Here's the case I got: I've setup post pagination for my website and everything works well. Except one thing - on every new page request all the resources are loaded again. This makes the website load …
6
votes
0
answers
1k
views
Add additional classes to gutenberg .editor-styles-wrapper
I'm working with tailwind and I was wondering how you would add a class to the div that has .editor-styles-wrapper applied to it so it would be .editor-styles-wrapper .my-custom-class
Is there a filte …
6
votes
0
answers
247
views
Customize WordPress Media Manager - Media Window
Im trying to customize the wordpress media manager "add media" window to get it as simple as possible to use. So i want to disable/ hide the following fields/ functions because i dont need some or oth …
6
votes
0
answers
675
views
Prevent 404 when using pre_get_posts to filter an archive page
I have added a custom taxonomy named "area" to the default "post" post type. It's meant to organize posts by geographical area.
In category pages I've added a dropdown that allows the user to filter …
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
0
answers
518
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 r …
6
votes
0
answers
591
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.el …
5
votes
0
answers
2k
views
Fetching private posts or custom post types via WP-API with basic authentication
I've installed WP-API along with Basic Auth. I'm able to fetch cpt posts using
curl http://siteurl.com/posts?type={post-type}
However, if I change a post to private, it is no longer returned. This …
5
votes
0
answers
2k
views
How to allow users login to WP from external domain and make REST requests
Basically what i want to do is:
Use Wordpress as a login system and data storage for web-application on another domain.
Make users able to register and perform REST calls from the application.
Let u …
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 th …
5
votes
0
answers
457
views
HTML5 theme support for comments + form 'novalidate' - how to handle it properly?
INTRODUCTION
My research is based on following assumptions:
WordPress version supports HTML5
Go to any admin page and inspect the resulting document. It should start with <!DOCTYPE html>.
Theme su …
5
votes
0
answers
860
views
Is there a core Sortable component in Gutenberg?
I managed to somewhat replicate the product gallery metabox from WooCommerce in Gutenberg using the
third-party react-sortable-hoc component. As it seems that this component is no longer supported, I' …