Questions tagged [post-type-support]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

How to add Support to show Fullwidth Featured Image of Custom Post Types in Wordpress.?

I had created custom post type called "Case Studies" for my Website. Now whenever I am trying share any Post from Case Studies in LinkedIn it showing me preview as small thumb image along ...
user avatar
0 votes
0 answers
22 views

Can I automatically assign a page template to a custom post type (i.e page-slug.php file)

I am making my first WordPress theme and I am trying to assign a page template to my custom post type automatically. (i.e page-slug.php) As an example: you can make a page file in WordPress called ...
user avatar
0 votes
0 answers
53 views

How to add support for category excerpts?

How do I add support for excerpts for post categories in the admin? I have tried the following, but to no avail: add_post_type_support('category', 'excerpt'); add_post_type_support('post_category', '...
user avatar
  • 119
0 votes
2 answers
29 views

Get all post types that supports tags

I'm trying to get all the post types that has tags functionality. I searched a lot but couldn't find a conditional or something for that. I need a way to get post types or post objects for the posts ...
user avatar
0 votes
2 answers
192 views

Difference between a default post type and a custom post type?

I'm a new user of WP, i have create 6 customs post type where i can change parameters of them in the functions.php of my personnal theme. I can change 'supports' and 'slug'. On my url if i put my cpt ...
user avatar
0 votes
1 answer
39 views

How to change labels in the projects page

​I want to change labels in this page ex: Client -> Owner What is the file name where I can change these labels from? screenshot: https://snag.gy/75oUTb.jpg I tried to do it by javascript, but it ...
user avatar
0 votes
1 answer
1k views

How to add custom supports for custom post types?

I need to define a custom support feature for my WordPress Plugin but I can't find how to do so. What I want to do is to display a box on certain custom post type containing 2 meta fields in which ...
user avatar
0 votes
1 answer
24 views

How to manage selected post-formats in custom post type

'supports' => array('title','author','post-formats'), Now display all types of post-formats but i want to display only selected. like : link,audio,video
user avatar
9 votes
3 answers
1k views

Only get post types based on support

I am trying to retrieve a list including both builtin and custom post types: $post_types = get_post_types(array( 'public' => TRUE, ), 'objects'); The above almost works, but I would like to ...
user avatar
1 vote
0 answers
129 views

Taxonomies relations

I am currently working on my first WP site and struggeling with something. My websites should allow the admins nor moderators to upload tutoring videos related to series. I want that each series will ...
user avatar
  • 11
0 votes
1 answer
610 views

Querying for multiple post types in SQL

My site is using a plugin for displaying an archive widget. It only displays the 'post' post-type. I currently have three different post-types. Looking through the code I found: $where = ...
user avatar
0 votes
2 answers
2k views

How to set a default CPT template and create post attribute´s display rules?

I have registered a new post type and made a custom template to display it. According to WP´s latest support for CPT templates, all it takes to make it available for any given CPT is to place this ...
user avatar
  • 11
10 votes
1 answer
3k views

What are custom_css and customize_changeset used for?

A fresh wordpress install has the following post types: Post (Post Type: 'post') Page (Post Type: 'page') Attachment (Post Type: 'attachment') Revision (Post Type: 'revision') Navigation Menu (Post ...
user avatar
0 votes
0 answers
22 views

Post types showing tables...Can I do that?

Hi everyone! I have the design of my web and there's a page that it should look like this. I don't know if this is the good way to do it but I'm trying to make custom types that show like "post", and ...
user avatar
1 vote
1 answer
3k 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() { ...
user avatar
  • 235
1 vote
1 answer
121 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 $...
user avatar
0 votes
0 answers
2k 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( ...
user avatar
0 votes
1 answer
3k 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.
user avatar
  • 163
0 votes
1 answer
77 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 ...
user avatar
1 vote
2 answers
430 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 ...
user avatar
  • 2,853
1 vote
1 answer
212 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 '...
user avatar
0 votes
0 answers
285 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 ...
user avatar
0 votes
0 answers
2k 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 ...
user avatar
0 votes
1 answer
78 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, just ...
user avatar