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

learn more… | top users | synonyms (1)

0
votes
0answers
66 views

Imported custom post type are not editable

I've just imported content into my wordpress (3.5.2) database and I have a number of custom post types. My problem is that I cannot admin any of the custom post type content that I have just imported ...
0
votes
1answer
888 views

Add Metabox to all custom post types

Ok, I've looked through the forum here, but haven't found quite what I'm looking for. I wanted to see if it was possible to add a Metabox to all custom post types without the need to setup an array? ...
1
vote
0answers
216 views

Changing a custom post type “has_archive” after registered

Ok, I've seen some similar posts on how to change a custom post type's attributes after it has been registered (in my case, I'm trying to modify a custom post type created by a plugin without ...
1
vote
1answer
254 views

Call custom post type by category

Ok, I used Custom Post Types Ui to create several custom post types. When setting up the CPT's I checked off that categories were enabled, and then I added a few categories to one of the CPT's. Now ...
0
votes
1answer
27 views

listing custom post type category page

I've registered custom post type "deals" and its taxonomy "deals-category" the page site/deals/ runs the archive-deals.php fine but in page site/deals-category/travel/ runs the archive.php file! How ...
0
votes
1answer
77 views

Adapting plugin for custom post type?

I am trying to reformulate a function (in a plugin) so that it applies to posts in a custom post type rather than normal posts. function saving_posts($post_id) { global $wpdb, $user_ID; ...
0
votes
1answer
241 views

RW Meta Box ,Problem setting post title

I'm using RW_Meta_Box plugin by Rilwis. I'm using a CPT and added a custom meta-box and removed the title and editor. But I still want to set the title for some obvious reasons. I created the CPT ...
0
votes
1answer
252 views

Custom Posts and Posts - next_post_link and previous_post_link not working together

I have regular posts and one custom post type ('SS13') pulled in together on the same page. When you click through to the 'single' page for each the next_post_link and previous_post link only work ...
1
vote
1answer
134 views

Parent page for CPT

Alright, there's been numerous topics about this, but it doesn't seem to work for me. I have one normal page, called "Resources". Then I have several Custom Post Types. One of wich is "Video's". I ...
1
vote
0answers
95 views

Hierarchical custom fields

I need to display press statements as a custom post type ("statement"). Associated with each statement post type is one or more Authors, which is currently implemented also as a custom post type ...
2
votes
2answers
61 views

Display different custom post type each week

I have a project where I need to display an alternating food menu each week. i.e. menu1 on week1, menu2 on week2 then back to week1 etc. I've created custom post types for each menu (menu1 & ...
0
votes
1answer
55 views

Control Loop Within Loop

I am attempting to control a loop I have within a loop. What I would like to do is display all post and have a custom post type inserted every 3 post. So it would be like this "post post post CPT post ...
1
vote
1answer
446 views

Get post type from taxonomy or category page

This might be somewhat backward, but how can one get the post type being displayed on an archive page? Alternatively, how can one get the post type associated with a given taxonomy?
0
votes
2answers
139 views

Custom Post type plugin breaking the front page shows dashboard?

I am following the wp.tutsplus tutorial on Custom post types. Everything was fine until i added this code in my main plugin file <?php add_filter( 'template_include', 'include_template_function', ...
0
votes
1answer
61 views

Inserting random posts

I'm wanting to add 2 custom post types to a slider, one is Events the other is Core Values but I am wanting to add all events and randomly insert only 2 or 3 of the 7 core values. I have this query ...
0
votes
1answer
619 views

custom post type: own database table structure and custom “new-post” interface

I was tried to search answer to my question, but I didn't find. What I need: Make own post type. It's simple with Custom Post Type UI plugin. Solved. To have own table in DB for post of new type. ...
2
votes
1answer
566 views

Count posts or custom post types from last 24 hours (or from today)

I would like to display count for custom post types (or posts) which was published that day (last 24 hours or TODAY). I use this snippet to get count of all posts from "posts" or from "custom post ...
0
votes
1answer
115 views

Nested loop called with shortcode duplicating the content above the main loop

I'm trying to use a shortcode to call one post from a custom post type and display it inside another page's content. (Basically, we have a custom post type called 'testimonials' and we want to display ...
0
votes
1answer
3k views

Creating a Custom Post Types dropdown in a Meta Box

Is it possible to populate a meta box with a drop down list of custom post types? I plan on trying to create a template for a client that will allow them to create a new page in the dashboard, and ...
0
votes
1answer
85 views

Limit to add one post per category only

What is the best way to implement a site that has one post per category only? The structure of the site is that it has an "About", "Services", "Bio" etc. Per custom post types or per categories?
0
votes
2answers
57 views

What method should I use for a sidebar widget that reads latest posts?

At the moment, I'm building a website for a local NGO and I have the following situation: in the sidebar, I should have a widget that displays the title of the latest editorials from the members of ...
0
votes
2answers
156 views

Pagination for event query

I'm working on a WP_Query using the Modern Tribe Events Calendar My problem is with pagination. Is this the incorrect way to paginate the WP_Query or could there be another method for paginating the ...
0
votes
1answer
24 views

How would I get a list of posts from a custom post type

I know the query method that you would use, that's not what I want. I could query the post type, then do the if statement with the while statement and go from there, but I am trying to populate a drop ...
0
votes
0answers
356 views

Sorting custom post types by category?

I'm working on an exchange site of sorts where people will be able to list or request surplus items inside of our organization. Listings will just be submitted as 'posts' but I've created a custom ...
0
votes
2answers
795 views

Using pre_get_posts to filter one loop in a multiloop archive

I have a custom-post-type archive (archive-rg_blog.php) with two loops in it. One of the loops I'd like to filter with the below code. It's just a basic loop for all posts, and I just need to set it ...
1
vote
1answer
286 views

2 Different Custom Post Types in Submenu

i have register 2 custom post types within my plugin one of them is shown in the left admin bar, the second i wouldn't show so i have set the "show_ui" to false. Is it possible to add the second post ...
1
vote
1answer
325 views

Pagination on with query_posts in custom post type template

I know there about a thousand pagination issue questions on here, and I've looked at them, but I can't seem to figure out what's going wrong with mine. This is a loop on a custom post type archive ...
0
votes
2answers
269 views

display posts from category within a custom taxonomy

I am trying to listing posts from a single category of my custom taxonomy. I have created a custom post type called "news" and a custom taxonomy called "instituteName". I then created a number of ...
0
votes
1answer
523 views

Add number in increment of one to DIV ID

I'm using a shortcode to display a custom post type. The shortcode contains an attribute to display only posts of a specific category within the custom post type e.g. [faq category="travel"] For each ...
0
votes
1answer
42 views

Publish and save specific postmeta to a filtered post_type

I have multiple plugins with different post_type(s). When I save or publish, all of the custom_post_meta that belong to one specific post_type are also saving. I'd like to filter by post_type so ...
1
vote
1answer
594 views

Add category attribute to custom shortcode

I have created a custom post type called "faq". The custom post type uses categories. I have created a shortcode [faq] that displays all the faq posts. What I would like to do is add an attribute to ...
0
votes
1answer
122 views

Make title field multiline in the add new custom post page?

I have a custom post type named "news". The title field holds the raw news and i added another custom field that holds the published news. The published news field is a text area so i can use enter ...
0
votes
1answer
497 views

add_query_arg() for custom post type on all visible links

I am trying to add add_query_art() $GET['var'] to auto filled form field. I have custom post type call career and want to auto filled field for the Position so url I want is ...
0
votes
1answer
218 views

Custom Permalinks for Custom Post Types and Taxonomies

I've been struggling with this for hours. I'm trying to get this URL structure: example.com/business/%custom-tax-name%/%custom-post-name%/ By custom tax name I don't mean the name of the taxonomy ...
1
vote
0answers
61 views

set permalink for CPT

I have a CPT and two custom taxonomy I registered. I also registered the taxonomy for the CPT. This is my register code: $args = array( 'labels' => $labels, 'public' => true, ...
1
vote
1answer
55 views

How to assign classes to all elements?

Is it possible to assign classes to elements of certain type? For example, all paragraphs in the post body or comment body should have class="paragraph", all unordered lists in post body should have ...
0
votes
0answers
140 views

Custom post type & taxonomy just like WP defaults

I've spent days attempting to do a single thing: create a custom post type/taxonomy (cat)/taxonomy(tag) trio that replicates the stock standard WP category/post/tag structure with permalinks of ...
0
votes
1answer
2k views

Custom search for custom post type, custom meta and search fields

Id like to build a search form for a specific custom post type (vehicle) and have filters for that custom posts type's custom meta fields (price, age) and custom taxonomies (make). This will totally ...
2
votes
0answers
152 views

How to remove slug from hierarchical custom types in 3.5.2

I know that is not suggested and that there is lots of discussion about this argument out there. Unfortunally, after a week of trying and tests, I have not managed to remove the slug from my custom ...
1
vote
1answer
190 views

How to noindex for certain custom post type without using plugins..?

Is there a way to create a noindex (meta robot ) for certain custom post type that i have for my wordpress blog..? Thanks
0
votes
1answer
276 views

Custom Post Types and Complex Content Hierarchy

I'm developing a fairly complex portfolio WP theme and I can't seem to figure out the logical and most efficient way to setup hierarchy for content. The content needs a deep hierarchy and I need ...
0
votes
1answer
30 views

How to list groupings and keep pagination

I have need to make a very custom query, and I'm not sure how best to approach it. Assume I have a custom post type that is called Package and three terms (basic, pro, premium) for the taxonomy ...
-1
votes
1answer
36 views

Wordpress show different custom post type

In wordpress I want two different types of custom post. In one section I want to post all the latest news and in other I want to use as blog. In latest news post type when I will make a news it should ...
0
votes
0answers
191 views

Index page redirecting to custom post type page

Every time I go to the index page of the website, it redirects me to a single custom post type page. This url: http://example.com/ Redirects you to this url: ...
0
votes
2answers
491 views

“Custom Post Type Permalinks” plugin URL strcuture

I've found this great plugin Custom Post Type Permalinks by a Japenese developer which is awesome at generating hierarchical permalink structures for Custom Post Types. Only I'm having an issue which ...
0
votes
1answer
72 views

rewrite rules add a folder in the path

I have to do some url rewritting for custom post types. I have 2 custom post types: portfolios and locations. What I need to change is the url like this: current: ...
0
votes
1answer
897 views

Custom Post Types - Capability Type

I've been developing a custom post type plugin for my own purposes and I want to understand capabilities in regards to custom post types a little better before I move forward. Unfortunately the ...
0
votes
1answer
93 views

Add Class After 4th Post

I need to add a "div" after the 4th post. I am showing 8 posts on the page and the code i am using above shows the div after the 4th and 8th... o just need the 4th to show not every 4th, just after ...
0
votes
1answer
383 views

How can I remove categories in menu in custom post type?

I'm creating a custom post type and have added categories taxanomy. This can be done in two ways: // In $args array 'taxonomies' => array('category'), // or calling a function ...
0
votes
1answer
53 views

Custom Post Types and Taxonomies

I am building an issue based wordpress magazine and am running into a few issues with custom post types and taxonomies. I created a taxonomy called "Issues" so that any custom post type could be ...