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

learn more… | top users | synonyms (1)

0
votes
0answers
126 views

Filter content by custom field and category

Im trying to filter an Wordpress request with 2 parameters. by a custom field (REGION) there are 6 regions by categorie, there are n-categories with 1 value per post. As result i would like to have ...
1
vote
1answer
56 views

Unable to display list of custom posts

I'm working on a project where I need to display a list of my custom post, just like with categories. I've made a custom post type (called "videoer") in my functions.php: function register_rc() { // ...
2
votes
1answer
492 views

Custom post status and preview

I am using wordpress 3.4 (the last before 3.5) and I have declared a post status type, and a custom user role called agent. It is for a custom post type, property. register_post_status( ...
1
vote
2answers
742 views

Create custom PAGE with register_post_type

The following code in functions.php outputs a post when I publish, not a Page: // custom post_type for agenda add_action( 'init', 'create_my_post_types' ); function create_my_post_types() { ...
1
vote
1answer
109 views

Custom Post Type Meta Boxes

How would you make a meta box sit above all other meta boxes at all times in a custom post type? For example: add_meta_box ( 'aisis-meta-id', 'Mini Feeds Information', ...
0
votes
1answer
148 views

New posts label category with “new”

I have 3 different custom post types, with each type forming my main navigation. When I post something new under one of them, I want that category in the nav to be marked with a "new" label for a ...
1
vote
2answers
228 views

Have a Custom Post Type index page display taxonomy items instead of posts

I have a CPT registered that is called lessons with a custom taxonomy (category) that is called courses. I want the /courses page (archive-courses.php?) to display the individual courses (i.e. "online ...
1
vote
1answer
4k views

Add category base to url in custom post type/taxonomy

I am building an LMS type system in WordPress, controlled by Custom Post types. The post type is called Lessons (with a slug of courses) and it has one custom taxonomy (category) called courses. The ...
0
votes
1answer
106 views

Cache issue with WP_Query and custom field filtering

I have three separate WP_Queries on a page. Each of them return custom post type items that have a certain checkbox checked and then display one of those randomly. The checkbox has been added using ...
2
votes
2answers
90 views

Structure for projects and clients

I have a client who has requested a WP based portfolio where they will present their projects and clients, filtered by categories and tags. They also wish to filter all projects done for a particular ...
0
votes
1answer
686 views

How to order separated Custom Post Search results

I am using the technique described here Seperating Custom Post Search Results and here posts_groupby problem to seperate my search results and group them by post type. This means I have the following ...
1
vote
2answers
360 views

List of Posts in a Custom Field

I have a question. I have a custom post type called Place. I have a situation that there can be place in place. I want to have a custom field parent_place where I could choose a parent of place. The ...
2
votes
1answer
110 views

Automatically populate a hierarchical taxonomy from a custom field

I've got a vexing how-to that I've not found any help on. I have a custom post type that has a custom field with a date in it (format: yyyy-mm-dd-t). When a post is published or edited, I would like ...
0
votes
1answer
274 views

Saving multiple Metabox contents

I'm putting together a fairly simple Custom Page for a friend on their WordPress site, but I'm having some real difficulties getting the contents of the Metaboxes to save correctly. WordPress doesn't ...
0
votes
1answer
83 views

Custom loop won't work, can't find problem

I can't figure out why this custom loop isn't displaying for me:. I've tried removing the if statement and removing certain query parameters but it just won't display. If I delete the loop entirely ...
0
votes
0answers
57 views

getting a post id from a custom type post

changed a wordpress to use custom type posts instead of pages. I'm Trying to update a plugin to work with this change. currently I'm stuck with just getting the right id from the post here's the ...
2
votes
1answer
115 views

Add nonexisting pages to navigation

I want to include categories which are listed in a non-native WordPress table to display within the "normal" wp page navigation (the table comes from WP-Filebase and is called ->prefix .wpfb_cats) ...
0
votes
1answer
741 views

Custom Post Type nest under a normal WordPress Page

EDIT Again, nope it's not impossible, just nasty. Solution below. Trying very hard to get this working. Have tried numerous suggestions here on stackexchange/overflow My goals are to simply select ...
2
votes
2answers
314 views

Query for posts in 2 taxonomies

I am currently using the following code to display a list with links to posts in a specific CPT and taxonomy: <?php $custom_terms = get_terms('videoscategory'); foreach(array($custom_terms as ...
1
vote
1answer
439 views

Set post title from two meta fields

In a custom post type I have post titles disabled, however in the list of posts and in the slug it just shows the title as "auto-draft". I want to automatically take two pieces of post-meta and make ...
0
votes
2answers
34 views

link posts to custom post type

I have a custom post type 'books' which I store different custom fields of information about books. I want to use posts and link the posts I write (in categories such as news, or offers) to the ...
0
votes
1answer
50 views

single-mySlug.php works: archive-mySlug.php does not. Custom Post Type

I am registering a custom post type (listing) with a plugin and it has two taxonomies. It all seems to work as expected. I can display individual posts from the CPT using single-listing.php but I ...
0
votes
1answer
309 views

How to add custom post type under option page

Anybody please help me to figure out how to add custom post type in Settings menu (option_page). Basically it is easy for custom admin menu by using: 'show_in_menu' => 'menu-slug' but i like to ...
-1
votes
1answer
85 views

What do the numbers mean at the end of add_action('save_post')…?

I've seen on a few tutorials that there are numbers at the end of the call to save Custom Fields/Meta Boxes on the save_post hook. For example, in the WordPress Codex it gives the following example: ...
0
votes
1answer
64 views

Insert custom fields to a custom post type

I am creating a small blog about my trekking and camping experience. Since different experiences - like campsites, treks and tour operators - have different metadata, I have created a custom post ...
0
votes
3answers
2k views

How to use next_posts_link/previous_posts_link for custom post types paginate?

I have a question about usage of previous_posts_link/next_posts_link. Is it possible to use it for custom post types too? I like to hear from you. Thanks in advance. Casper
0
votes
1answer
179 views

Getting WordPress Flexslider Item Number

I add flexslider to my theme home page via this code.how can I get number of per item? as 1 2 3 4 ...... <?php $args = array( 'post_type' => 'try', 'posts_per_page' => 3 ...
1
vote
1answer
42 views

Modifying Custom Post Type after registration (will it affect content?)

I have a CPT (defined in functions.php) that I have set to as non-hierarchical. A lot of content has already been uploaded into the database. If I change the definition to 'hierarchical' => true, ...
0
votes
1answer
74 views

How to let custom post type posts show in standard post archive (like in homepage)?

If I, for example, create a custom post type named 'tutorial', how do I get it to also show up in places like "Recent posts" , etc?
0
votes
1answer
80 views

2 language CPT content

I'm working on a CPT Portfolio to present my job I wish to be able to have it in 2 languages but I would prefer not to use an additional plugin since that is only 2 fields that would be in 2 language ...
1
vote
0answers
73 views

Unable to delete custom post types, confusion around capabilities

So I'm working on a plugin for creating a questions/answers system that's as simple and well-integrated as possible (not unlike this site) but am stuck at the creation of the custom post types. You ...
0
votes
1answer
32 views

Problem with a query in custom posts

I'm making a search form to select available rooms. I have a custom post for the rooms called "Products" and a post meta value called "availability" (format: Y-m-d). And I want to find all rooms ...
0
votes
2answers
351 views

Custom Post taxonomy template

Friends I need help. Am extending the Mayashop theme for a friend & I ran into a problem. Created a custom post type named watchdog, created a taxonomy for it called watchdog-brand ... now the ...
0
votes
1answer
395 views

Custom post-type's pagination not working in category.php

I have this code to the file category.php : <?php get_header(); ?> <div id="content"> <div id="all"> <div id="todo"> <?php $my_query = null; $paged = ...
0
votes
2answers
42 views

how to create a post type like comments

I want to create a post type but don't allow to create new item on the back-end, the item of this post type can be only created on the front-end by the user. How can I do this? Thank you
0
votes
1answer
82 views

Targeting specific Page Template for sidebar page

Currently, there is a sidebar dedicated to all posts, and one for all pages. What I would like to do is target specific page templates to display sidebars for each template. if(is_front_page()) ...
0
votes
1answer
88 views

Generate daily archive whenever any post type is added

We have an issue with our date archive in WordPress, where our daily archive (example address www.xxx.com/2013/01/09) is only generated when a post from the default post type is added. Any day where a ...
0
votes
1answer
180 views

Display Posts Query with IF function

I'm writing a template to display my custom posts types in a list. But I only want to have the post show if it has a value for one of my custom fields. I'll explain: My custom post type is "Faculty ...
0
votes
1answer
187 views

Custom query shows custom post types in trash

I have a custom wordpress query like so: $query = new WP_Query(array('post_status' => 'future || publish', 'post_type' => 'kalender', 'order' => 'ASC')); But the problem is that the items ...
0
votes
3answers
93 views

Am I mixing up the concept of posts pages and categories?

I'm planning on having workshops on this layout: I have several workshops: Meditation has 2 or 3, Reikki has 2 and Feng Shui has a couple. So as I read the codex about pages and categories I get ...
0
votes
2answers
72 views

Adjust layout most recent post, taking pagination into account

I'm displaying two posts on my main page, and using post pagination to go through the older posts. My problem is I want to change the layout a bit of the most recent post. This sounds like a very ...
0
votes
2answers
145 views

Paginate yearly archives for a custom post type

Here's the code I'm using to create yearly archives for a custom post type: function myquery_custom_post_rewrite( $rewrite_rules ) { $myqueryslug = 'customposttype'; $month_archive = array( ...
0
votes
2answers
335 views

Show specific content on parent custom post type and all children

I have 5 main posts within a custom post type. Some of these posts will have children. I have content that should only be displayed on the parent post and all children of that post. What's the best ...
1
vote
0answers
601 views

Featured image metabox not showing up

I have a theme installed on WordPress Multisite 3.5.1 which has a one custom post. Now I wanted to have two more so I have created them. Everything is working besides one thing. The featured image ...
6
votes
2answers
2k views

Can multiple custom post types share a custom taxonomy?

I'm considering rebuilding a drupal site in wordpress and am still wrapping my head around the differences between the systems - particularly cck/fields and custom content types and the different ways ...
1
vote
2answers
115 views

Categories sorting

I'm using code below to spit out custom post types along with its categories, so Category 1 ---post 1 ---post 2 Category 2 ---post 1 ---post 2 ---post 3 etc. That works well for ...
0
votes
2answers
354 views

Settings API - save multiple tabs at once

In the attached screenshot you can see the structure of the theme options we are working with. There are 8 tabs and for each tab, we have created custom fields using code similar to what can be seen ...
0
votes
1answer
76 views

Retrieve Custom Taxonomies with Description and Slug

I've been looking to grab a list of custom taxonomies for a custom post type with the titles, descriptions and tag but have not been able to progress or find anything helpful. Breakdown: I have ...
1
vote
2answers
499 views

get_categories() for only CPT

On the site that I am working on I have Jobs as a custom post type and Locations as custom taxonomy. The Locations are used by Jobs, Posts, and other CPTs. I am working on a small filter for the ...
1
vote
0answers
134 views

Lost of query parameter when using permalink

I have many issues with the use of rewriting, but i'll just point out one in this post to be specific. In my theme i use custom post type, with custom taxonomy function custom_post_realisation() { ...