The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
17 views

Adding `supports` array to WordPress custom post type

I am trying to add the supports parameter to my custom post type but it is not working and renders the editing page blank: add_action( 'init', 'create_post_type' ); function create_post_type() { ...
1
vote
1answer
26 views

Filter post_type thumbnail in Search result

it's my first question on Stack network so let me know if something wrong in the use of this. I have a theme with these pieces of code: /** * Get the Featured image URL of a post * @global object ...
0
votes
0answers
114 views

How to add gallery support to a custom post type?

I've created a custom post type. add_action( 'init', 'my_custom_post_type' ); function my_custom_post_type() { register_post_type( 'my_custom_post_type', array( 'labels' => array( ...
0
votes
1answer
314 views

hide default post body field in backend

Is there a easy non-css-hacking way to hide the default post body field in the dashboard? I simply want to have the title field and some adv. custom fields but remove the default post body field.
0
votes
1answer
59 views

Custom post types & Thumbnails

I am looking to set up 2 custom post types - Publicity & Management What I would like to do is display the featured thumbnail for each post from the custom post type on the Publicity page. These ...
1
vote
2answers
160 views

wp_list_filter() and supports

I'm testing the function wp_list_filter(), basically I want to know if post_type has some specific feature before making stuffs. So I end up with this: public static function ...
1
vote
1answer
113 views

Registering different Post Formats for Blog Post and CPT

I'm using following code to register post formats for my blog posts ... add_theme_support( 'post-formats', array( 'gallery', 'video', 'audio' ) ); Now, i want to add post formats support for my CPT ...
0
votes
0answers
110 views

Custom Post Type supports author

I am using 'author' in 'supports' array for my 'custom post type', that shows a list of all users of the site on add or edit post screen to assign author for the post. But I want to filter that list ...
0
votes
0answers
750 views

Remove media button from the custom post type support editor

Below code removes the medial button from other editors as well.. how to remove the editor from the post type support editor add_action('admin_head', 'remove_mediabuttons'); function ...
0
votes
1answer
67 views

Understanding WordPress' post type support

I was hoping if someone could help me better understand WordPress' post type support. remove_post_type_support( 'post', 'author' ); Above in example doesn't seem to actually remove the support, ...