group search results by post type?
My site has 3 unique post types:
My site has 3 unique post types:
Before WP 3.9 i had the following two filters applied in the functions.php:
Assuming I have no infinite scroll or anything else going on in my theme:
Is there a way to enqueue my custom Gutenberg block styles and scripts so they are only (lazy) loaded in the front-end when the block is really used? Something like is_active_widget, just for blocks?
In wordpress 3.1 they finally added the option of allowing posts belonging to a custom post type to be marked as “sticky”… what I can’t figure out though is how to enable this so the admin menu option shows up.
I have the following code and while get_the_ID() works, $post->ID does not, why?
I have a custom post type paper defined in my WordPress plugin that I show along with standard posts in the main query via:
I’m using wordpress multiste 3.3.1
I’m not gonna update it in the future. So I disabled all upgrade functions.
What is the difference between set_post_thumbnail_size and add_image_size? Is set_post_thumbnail_size for all images, and add_image_size for sizing images individually?
i’m looking for a good and easy way to have a custom post type “event” that can have multiple dates. (I have tested about 20 plugins). I think i have no problem building a metabox allowing the user to duplicate the field group “date and time” multiple times. But how would a query look like that creates a chronological list of events from the meta data?
Does anyone know how I can customise wp-activate.php?