Custom Post Types extend the WordPress back-end to support additional, non-Post content.

learn more… | top users | synonyms (1)

0
votes
1answer
78 views

How to loop through custom posts in admin edit screen

How can I access the loop that displays all the custom posts in a custom post type's edit.php page? Is there some sort of hook for this? I want to do some condition checking on the data that is being ...
1
vote
1answer
568 views

Why is my select meta data not saving?

I am working on a site at the moment where I need to save several different types of meta data for a custom post type. At present I have a text input that is saving with no problem but am struggling ...
0
votes
1answer
68 views

Custom post type isn't working

I just built up a beta environment for testing my new Wordpress site. I didn't migrate the database; I did my own installation again and ported over my theme (it's a simple theme) to my new instance. ...
0
votes
1answer
56 views

Disable custom taxonomy on admin bar

I created a custom taxonomy and i want to disable the taxonomy to show on the admin bar below my custom post type. How do i disable it?. The reason i want to disable is because the user is not ...
0
votes
0answers
427 views

How do I add a checkbox option to this custom post type code?

I have a custom post type set up and I want to add a checkbox option. If the box is checked, I want to use a php if/else statement to show one div or another. Can someone take a look at my code and ...
0
votes
1answer
170 views

Why is the output of a call to the_excerpt different when the call seems to be identical?

Ok I've been asked to fix a problem on a website that is a bit weird. The index page (template-magazine.php) here, Has this bit of code: <?php get_template_part('loop'); ?> to produce a ...
2
votes
3answers
2k views

How do I safely change the name of a custom post type?

I made a custom post type called 'portfolio' but I want to change it to 'projects'. What would be the exact steps I need to take in order to safely change the name and prevent the custom post type ...
0
votes
0answers
56 views

Omitted Content After Post-Publish Insertion

I have a string that contains $thehtml but whenever I insert it manually into a custom post it appears that wordpress alters/strips down the html.... I've already tested/outputted $thehtml string in a ...
0
votes
1answer
42 views

Custom Loop and Standard Blog Loop Issue

I am working on a theme with a front page that will have two loop sections. The first will loop three posts from a Custom Post Type (ill-portfolio), the second will loop three blog posts. In both ...
0
votes
1answer
156 views

Comment moderation with disqus comments

Comment moderation on custom post types this answer shows moderation on custom posts. Is this possible with disqus?
0
votes
1answer
209 views

Conflict between Capabilities and Menu Visibility with Custom Post Types

I hope this isn't just the result of typo on my end, but if it is, I'm not seeing it. I'm adding a custom post type to my site. Actually I'm adding three. Two of them I'm trying to set custom ...
0
votes
1answer
61 views

Specify a Page as the parent to the CPT Archive

I have an "About Us" page on my site with some child pages. I have created a "History" custom post type, where the rewrite slug is 'history'. I use archive-cpt_history.php as the template file for ...
0
votes
3answers
279 views

Restrict custom post type view by user role

I've created a custom post type and created a couple of custom user roles and want to be able to restrict the view of the post type based on the specific roles. Is there a straightforward way to ...
1
vote
1answer
55 views

Is it possible to activate customfield 'text description' upon activating the customfield 'checkbox'?

I'm trying to find a solution how to activate a another customfield in WordPress pages when the selectbox is selected. This is the script to simply show the customfield 'checkbox' in wordpress page ...
0
votes
0answers
34 views

Listing custom post type items from a couple of custom taxonomies

I know I have asked a similar question in the recent past (Listing all custom post types using a specific term on the said term's template page, in groups), but in this case, the template is more ...
2
votes
1answer
453 views

current-menu-item not working with custom post type

I'm a wordpress newbie and I have annoying problem. I have a few custom post types (capability_type=post). Two of them i created with "Custom Post Types" plugin and when i put its categories in ...
0
votes
1answer
77 views

404 on Pages for Custom Post Type & Query_Posts

It took me quite a while to find a good solution for ordering a custom post type by two custom meta keys. When I finally got it working, I found out the pagination no longer works. I've tried dozens ...
0
votes
3answers
3k views

Custom post type single-{custom}.php not working

I made a custom post type with the machine name special_media_post and wordpress is simply not seeing the single-special_media_post.php. I am at a complete lose. It keeps defaulting to the index.php ...
0
votes
0answers
108 views

Capability to read user's own draft post of CPT

I've got a custom role called 'Gym' and custom post type (CPT) called 'Story'. Every Gym user can create a draft of a story and view their own story drafts. My 'Story' CPT have got the following ...
0
votes
1answer
93 views

Custom Post not working as expected

NEW EDIT I solved it, as written in answer, the problem where that variables are 'forgotten' (not so techy I know, sorry for this) when function starts. EDIT: I found the problem is this: ...
0
votes
0answers
98 views

Custom Post Query Combined with Conditional Tags

Is it possible to combine displaying a list of custom post types on a single page depending on conditional tags? Below is what I have so far, basically if there are 4 posts or less show the posts, if ...
0
votes
1answer
145 views

Custom post type and custom taxonomy archive inaccessible

I've created some custom post type let say: post_type_1 post_type_2 Those post types are related to each other, every post_type_1 has parent of many post_type_2. Then I created a custom taxonomy ...
1
vote
2answers
126 views

Where to store custom tagging data associated with a custom post type

My application allows users to add tags to an image (similar to facebook). Each tag can consist of up to 8 attributes and there is currently no limit on the amount of tags a user can add. At the ...
10
votes
1answer
324 views

WordPress dashboard, viewing CPT results in 504

I created a custom post type with a custom taxonomy. I have about 1500 posts all of which are assigned to some sort of taxonomy term...some being assigned to 200+ terms. I noticed that from the ...
0
votes
0answers
612 views

Classic Custom Post Types and WP-PageNavi

Has anyone made this work? I am searching for a solution for 2 days now, and it won`t work. I have... $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $updates = new WP_Query(array( ...
0
votes
1answer
109 views

Custom Post Type Navigation on Custom Field

I'm working on a Custom Post Type sorted on a Custom Field. No problem when I list out the posts. But when I go to the single post page for one of these, I want the Prev and Next navigation links to ...
4
votes
2answers
2k views

Custom Post Type Plugin: Where Do I Put The Template?

I'm writing a custom post type plugin. Part of it I'm outputting to the template via shortcodes. But other parts need a custom post template, and I figured out how to use the template hierarchy for ...
0
votes
1answer
78 views

Archive of custom post type returns 404 [duplicate]

I have created a custom post type "video" (see my functions.php below) and it should return an archive on mysite.com/video but instead I get a 404. Functions.php // Video's add_action( 'init', ...
1
vote
1answer
91 views

Display Custom Taxonomy

I am using custom post types in a theme optimized for web radios (custom theme). I added a custom post type called "Radio Shows" and registered two custom taxonomies: one hierarchical (like default ...
0
votes
1answer
355 views

How to use WP_Query in a CPT achive page?

I can't get WP_Query to work in my custom-post-type archive page. Can someone please tell me what I'm doing wrong? I would appreciate any help. Here's the code in archive-bulletin.php: <?php ...
0
votes
1answer
130 views

Cant' Display Custom Post Type Title Base on Tax Terms

Trying to list all Custom Post Type titles based on filtered Custom Taxonomy Terms I am getting the list of all post titles instead of getting the list of Queried post. Here is the code I am using: ...
0
votes
0answers
36 views

Can I set a CPT title field to a dropdown with preset options if user is of a given type?

I am using the WP Property plugin so I have a Property CPT. I also have building managers who will be creating these new CPT posts. Is it possible to set the post title field to be a dropdown field ...
2
votes
1answer
989 views

Only list categories that contain posts of a specific custom post type

I have three custom post types set up, articles, videos and photos. I am using standard categories for these post types, and sharing the categories across all post types. I am trying to create a nav ...
3
votes
2answers
470 views

How can I add dropdown widget/box to admin post page?

I am trying to figure out how to add a dropdown widget to the post page. The reason I ask is because I would like to be able to have a few different post classes that the user can select while making ...
1
vote
1answer
315 views

Change labels of custom post type via child theme

I have a WordPress parent theme that uses a custom post type called portfolio, which I'd like to change to property. I'd like to have all of the contextual elements changed to show property like, ...
2
votes
1answer
119 views

Customize Search Results for Custom Post Type

Is there a way to use a custom PHP template for search results of a custom post type. I know that you can have specific archive and category templates for custom post types. For example, ...
0
votes
2answers
1k views

Search Post Title Only

I'm using the standard WordPress search form to search a custom post type. Here is my code: <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> ...
0
votes
1answer
32 views

Check in function on custom page

I have a website about places and attractions in my country. Each place/attraction is a different custom post. On this page, i would like to add a button with the value "Check In" and if clicked by a ...
0
votes
0answers
39 views

How to Display Custom Taxonomies in an Un-ordered HTML List

Having a Custom Taxonomy function like below, can you please let me know how I can list all of my Taxonomies in an unordered html list enter code here function create_conference_taxonomy() { ...
0
votes
0answers
21 views

What does “_x( ” and “__(” mean in Custom Post Type Arguments [duplicate]

Can someone let me know what does "x(" and "_(" mean in Custom Post Type? For example at following code: 'name' => _x( 'Products', 'post type general name' ), 'add_new_item' => __( ...
0
votes
1answer
168 views

How can I add a filter to a particular post format?

I have several post formats and I want to use add_filter selectively, applying the filter to some of the post formats but not all. When I do this in my functions.php file it affect all the post ...
0
votes
1answer
90 views

List of filtered Events is breaking paging?

I have a list of events that are displaying in date order, with events in the past being hidden. The issue is that in total, there are 3 pages of events, but once the past events are hidden, there ...
2
votes
1answer
279 views

wordpress custom post type remove duplicate menu item

I've registered a new content type with following - register_post_type('news', array( 'labels' => array( 'name' => __( 'News'), 'singular_name' => __( 'News'), ...
2
votes
1answer
962 views

Custom Post Type / Taxonomy Slug / Post Title with post type archive

I've tried plugins, read through stack and spent hours on this, and I just can't seem to find a way to achieve what I want. I can achieve the following permalink structure: ...
3
votes
1answer
898 views

Wordpress Custom Post Type Admin Page really slow

(I've posted this on the normal stack exchange, but it was suggested that I put it here too. Glad to know this place exists... :)) So, I've been all over the internet trying to figure out what is ...
0
votes
0answers
44 views

How to remove the extra characters passing in the Custom post type

I have created the custom post type and the custom taxonomy. Then I have created the template file in the name of taxonomy taxonomy-product-categories. I created the post type, then added to the ...
0
votes
1answer
98 views

How to use a variable as a function name?

I'm trying to loop a function that will let users create a few custom posts, but I have a problem with the function name. Here is an example: How can I write this: function ...
0
votes
1answer
58 views

How can i display movies in profile page, added by an user?

How can i display movies added by an editor in profile page, i mention that the user (editors) have capabilities to add movies. I shoud use a querry? with args? I mention that the post_type is ...
0
votes
0answers
66 views

Custom post types images go to a specific folder, not the montly one

I have a website which allows "mini sites", meaning custom post types. We noticed that the images that are published along the mini-sites reviews go automatically to the same month, while regular ...
0
votes
1answer
161 views

Implement location at wordpress post via custom taxonomies?

I would like to add a new custom hierarchical taxonomy (or 3 custom taxonomies... dependent your answer) which contain the location by: City + States&territories + Country. for example: ...