Questions tagged [post-type-support]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Need help with child pages displaying as individual pages

We could really use some help, guidance, or any available resources related to our issue. On our WordPress website (using the free version of Elementor, Sinatra theme), we have encountered an problem ...
sp2322's user avatar
  • 1
0 votes
0 answers
88 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 ...
John Crause's user avatar
0 votes
0 answers
169 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', '...
kloddant's user avatar
  • 119
0 votes
2 answers
34 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 ...
DaftPlug's user avatar
0 votes
2 answers
229 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 ...
Delirium6's user avatar
0 votes
1 answer
45 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 ...
Marwa Ellethy's user avatar
0 votes
1 answer
2k 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 ...
Psychotiik's user avatar
0 votes
1 answer
25 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
Ravi Patel's 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 ...
Cyclonecode's user avatar
  • 1,144
1 vote
0 answers
135 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 ...
JBStyle's user avatar
  • 11
0 votes
1 answer
813 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 = ...
repoman84's user avatar
0 votes
2 answers
3k 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 ...
Diogo's user avatar
  • 21
10 votes
1 answer
4k 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 ...
rob-gordon's user avatar
0 votes
0 answers
23 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 ...
Cristinaluj's 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() { ...
Aziz's user avatar
  • 235
1 vote
1 answer
128 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 $...
Riklisci's 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( ...
Riffaz Starr's 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.
user49869's user avatar
  • 161
0 votes
1 answer
78 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 ...
David McKinlay's user avatar
1 vote
2 answers
466 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 ...
JMau's user avatar
  • 2,903
1 vote
1 answer
215 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 '...
Faisal Khurshid's user avatar
0 votes
0 answers
324 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 ...
Vipin Kr Singh's 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 ...
B L Praveen's user avatar
0 votes
1 answer
82 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