Questions tagged [post-type-support]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 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 ...
0
votes
1answer
39 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 ...
0
votes
1answer
15 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
9
votes
3answers
399 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 ...
1
vote
0answers
101 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 ...
0
votes
1answer
222 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 = ...
0
votes
2answers
1k 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 ...
7
votes
1answer
2k 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 ...
0
votes
0answers
20 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 ...
1
vote
1answer
1k 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
104 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
1k 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
2k 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
71 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
289 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
184 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
241 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
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 ...
0
votes
1answer
74 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 ...