Tagged Questions

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

learn more… | top users | synonyms (1)

0
votes
1answer
1k views

Insert a Custom Post type into my Loop

I have from my perspective a complicated loop. Code below. <!-- *** Check Mass List (Custom Post Type) *** --> <!-- *** End Mass List (Custom Post Type) *** --> <?php if ...
1
vote
1answer
1k views

I can't set meta_key in my custom post type query

I've created a custom post, events, and saved the meta data event_year to each event. I'm trying to get a year's event archive. When I go the the following URL, the meta_key and meta_value are not ...
2
votes
0answers
917 views

Relationship between two taxonomies and a custom post type [closed]

for a project, I've a CPT products with two taxonomies : category and brand. I would like to build a navigation from a category to a product under a brand. page 1 : list the categories terms page 2 ...
2
votes
2answers
359 views

Want to turn Wordpress into a paid subscription directory

I need to create a paid subscription directory where people can register their business and enter its details. Subscriptions should be paid on a monthly or yearly basis. Business details include ...
1
vote
1answer
627 views

Custom Post Type: Set post_title equal to a custom post type field

I’ve created a custom post type for employees in a company with some fields they have to fill (like E-mail, phone, etc.) and a select box which takes some values from another custom post type called ...
1
vote
0answers
440 views

Date archive shooting 404 when months and days are quarried [closed]

I know you guys have seen hundreds if not thousands of 404 questions. I assure you I have done everything in my power. 1. updates permalinks 2. using /%post_id%/%postname%/ for structure 3. have ...
0
votes
1answer
516 views

Front End Dropdown Showing All Custom Post Type 'Agent'

Title says it all, I pretty much just want to put a dropdown list on the front end that will list all the posts of custom post type 'agent', preferably in alphabetical order, and go to that post when ...
4
votes
2answers
879 views

Why does my custom WP role need edit_posts to edit images?

This may be obvious to someone other than myself. I think I remember reading somewhere that an "image" is indeed a form of "post". I have a custom post type called "listing" I have a custom WP role ...
0
votes
1answer
2k views

Check if a specific custom field exists?

Is it possible to check if a custom field exists for a given post within the loop? For example, I'm using functions like get_post_meta($post->ID, 'Company', true); preceded by a <h4> tag, but ...
0
votes
4answers
684 views

Pagination throws 404

I'm experiencing some problems with my pagination when displaying custom post types. I would like to display 9 posts and then display a numeric pagination. This is working, some links are generated ...
0
votes
1answer
3k views

Pagination with custom post type not working

For some reason I can'g get pagination using previous_posts_link and next_posts_link working. Here is the code I have... <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ...
3
votes
2answers
276 views

How does WP custom post types fare compared to Drupal's?

In Drupal you have the GUI to create whatever type you want. How about in WP, do I still have to code to create one?
1
vote
1answer
147 views

Getting rid of /my_custom_post_type/ in the single view URL

When I'm reading a custom type post in the single view, I see that the URL is www.my_site.com/my_custom_post_type/title_of_my_post. How to get rid of this ugly /my_custom_post_type/ ?
0
votes
2answers
919 views

How to Get the title of a custom field?

I know how to get the value of a custom field, using code like get_post_meta($post->ID, 'company', true);. Is there a way to get the name of the custom field?
1
vote
2answers
1k views

Conditional Query of Custom Post Type and custom taxonomy

I am working on a project that has a custom post type called 'Experience Statement' Custom Taxonomy attached to that post type called 'Expertise' 6 different terms for the custom taxonomy: Coastal, ...
1
vote
2answers
879 views

Add TinyMCE to CPT metaboxes in 3.1?

Been looking around for an alternative to this method: http://allcreatives.net/2011/02/02/using-the-native-wordpress-tinymce-wysiwyg-editor-with-your-custom-post-meta-textareas/ To add the WYSIWYG ...
0
votes
1answer
157 views

Query custom type posts by array of IDs

I can't seem to get post__in to work with custom post types. Is this true? What's the alternative? $args = array('post_type' => array( 'post', 'page', 'tf_events', 'duka' ), 'orderby' => ...
1
vote
1answer
158 views

Authenticating user for custom post type [closed]

Referring to the docs got add_meta_box, // Check permissions if ( 'page' == $_POST['post_type'] ) { if ( !current_user_can( 'edit_page', $post_id ) ) return; } else { if ( ...
1
vote
3answers
468 views

will post_id ever change? Can I safely use post_id for custom queries?

What are the best practices for using post_id? Can I use this safely in my templates to call specific posts, or will these post_id's ever change? The reason I ask is that randomly today the ...
2
votes
3answers
549 views

Wordpress rewrite my URL when i use pagination

I've just created a rewrite rules to integrate pagination in my page music (displaying custom post_type "music") in order to : 1. displaying a specific page from a long musical playlist. 2. in this ...
0
votes
1answer
856 views

Showing current taxonomy terms

I've created a custom post type called "References" and a custom taxonomy "Genre". I have 2 terms : Applications and Games. My problem is that I'd like to show posts associated in Applications on a ...
1
vote
1answer
613 views

Associate custom post types with normal posts

I have a custom post type, called App. This has details like the name, description, thumbnail image, and some custom fields. Then I have posts about this app, that I'd like to associate with it. In ...
1
vote
2answers
726 views

When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically?

For example, if I create a post type called "destinations" does that automatically create capabilities like "edit_destinations" or "delete_destinations"?
0
votes
2answers
764 views

Why won't this jQuery code work?

Tearing my hair out a little bit here! I'm trying to create multiple image-selection boxes so users can upload as many images as they like to the species profile they've created. I'm using the ...
1
vote
1answer
219 views

Listing tags from a custom post type

The topic custom post type: register_post_type( $this->forum_post_type, $bbp_cpt['forum'] ); /** TOPICS ************************************************************/ // Topic labels ...
4
votes
2answers
5k views

Custom Post Type Archive Page: Set Posts Per Page, Paginate

I have a custom post type called video. Would like to paginate its archive page, showing only 3 posts on each page. There is also a custom loop on the archive page that outputs all the video posts ...
3
votes
3answers
4k views

set_post_thumbnail_size in percent, not pixels?

I've created a new custom post type and I need the post thumbnails or featured images generated by the get_the_post_thumbnail() function to be set in percent, rather than pixels, as I'm using a fluid ...
1
vote
2answers
75 views

need advice on how to do a lists using custom post types - taxonomy vs postmeta

i am building a lists plugin .... i want to have a custom post type "lists" and then obviously also there would be a number of list items for each list .... i have read a fair bit of stuff about ...
1
vote
2answers
2k views

Importing posts from XML into custom post type

I need to be able to create posts in a custom post type with custom taxonomies from an XML file. It is from a job feed so when a job is added I need to be able to import it into wordpress. Do I just ...
0
votes
1answer
361 views

Building Forums with Custom Post Types

I'm trying to build some sort of a discussion boards by using custom post types and the built in comments. The structure is as following: An archive page to list all the pages of the Forum type, so ...
14
votes
2answers
9k views

Mixing custom post type and taxonomy rewrite structures?

Basically I want to achieve a glossary using custom post types and have some issues setting up rewrites the way I want them to be. I want it like that: The main glossary URL: ...
1
vote
1answer
340 views

[Plugin: Posts 2 Posts] Changing display order of connections

Can I change the order in which connections are displayed ? If I create say three connections and then display them at the bottom of my article, I will get them in reverse order. How can I change ...
0
votes
3answers
1k views

Custom Post Types: Custom columns with Title submenu?

When viewing non-custom Posts, you get the likes of this submenu: I'm not using a title - I'm using custom columns with two fields concatenated: Is there any quick and easy way of adding the ...
0
votes
1answer
615 views

post__in not taking my list of IDs

I have a Custom Field on a page named banner_id_list. I have a Custom Post Type called top_banner. I add a few banners, note the IDs and then go back to the page and add a comma delimited list of IDs ...
0
votes
1answer
455 views

Custom post type's extra fields - how to handle?

I've refrained from asking this question for a couple weeks, as I wasn't completely certain what I wanted cleared up... think I got it. I'm in the process of putting together a plugin to run a ...
1
vote
2answers
290 views

How to handle large number of images in a post?

I have a load of images - up to 16 per post plus a thumbnail and a logo. I want to figure out what the best way to handle them is. Since I'll be adding new entries quite regularly the number of images ...
0
votes
1answer
172 views

Displaying child taxonomies

Imagine this: I have a custom post type called 'Animals' and I have registered a taxonomy for this post type called 'Types of Animal'. 'Types of Animal' would be 'dog', 'cat' and 'mouse' and so on. So ...
1
vote
1answer
413 views

Problem with custom post types, taxonomy and permalinks

I am experiencing problems with custom post types, taxonomies, permalinks and rewrites. I created a custom "recipes" post type and taxonomy using this code: add_action('init', 'recipes_register'); ...
0
votes
1answer
165 views

show custom post types for a month

I have a custom post type called "cpt_docs": add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'cpt_docs', array( 'labels' => ...
2
votes
1answer
736 views

Using %postname% tag with a Custom Permastruct creates 400 Bad Request Errors from the server

This is related to another question that I had asked earlier. I'm doing some rewrite code to create some custom permalinks for a custom post type. I think I'm getting it mostly working except I'm ...
0
votes
2answers
1k views

Mass convert MySQL data entries into custom post type?

I have a MySQL table with about 500 rows of entries each containing: title, author, series, and series number. Would anyone know how to mass convert the data into (1 entry per post) custom post type ...
1
vote
1answer
281 views

custom post types don't appear in RSS

I created custom post-types in my site but these posts are not shown in the RSS. Only the regular posts appear there. What could be preventing them from showing up there
0
votes
1answer
724 views

custom post type tag lists and link to post

I'm a newbie in custom post type. and so far I've been able to customize list of post (archive.php or archive-xxx.php), and link to individual post (single.php or single-xxx.php). All these works ...
0
votes
1answer
310 views

Why is Posts page selected when showing single Custom Post Type?

In Settings-Reading I have selected a static page from my "Front page displays". My Front page is "Home" and my Posts page is "News". I have also added a Custom Post Type called "Project" without an ...
1
vote
1answer
2k views

Getting template_include to work when allow_url_include is off?

I'm working on a plugin that creates a custom post type and I would like to display a custom template without modifying the theme. Here's the simplified code I'm working with: ...
3
votes
3answers
7k views

Query menu_order custom post types

I added 'supports' => 'page-attributes' to my custom post type, and now i have the meta box for page ordering. When i use the argument 'sort_column' => 'menu_order' with get_pages() on my ...
0
votes
1answer
850 views

Full RSS feeds for Custom Post Types

I would like my Custom Post Types to bee full text feeds, with the whole content. This url of course works http://sitename.com/feed/?post_type=name, but I only get excerpts in the feed. Regardless of ...
2
votes
2answers
3k views

Restrict categories to a custom post type

In the WP-Admin when creating a post or a custom post type I want to restrict certain categories to a custom post type. For example, Posts will only be able to select Category A and B. And custom post ...
1
vote
2answers
959 views

Remove Post Page “View Post” Link

I have created a custom post type, but it just to list some data on a page and it doesn't have any single.php. How do i disable so on the post page when i click publish it doesn't show the "View ...
1
vote
1answer
1k views

sortable columns on a custom post type won't work

I have picked through Scribu's post very carefully and cannot determine where the issue is. Here is the code: // Register the column function event_date_column_register( $columns ) { ...