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

learn more… | top users | synonyms (1)

0
votes
1answer
29 views

Restrict a filter to a custom post type. Am I doing this right?

So I had this little bit of code to short a music charts custom post type that all starts with numbers (the trick was to make the 10th position appear last in the list, not between 1 and 2): ...
0
votes
0answers
56 views

Show/Hide Custom Meta Boxes using any plugin

How can I show and hide the custom meta fields created using Advanced Custom Fields plugin? I want to handle the publish and unpublish of the fields and values from the admin panel. Is there any ...
0
votes
2answers
42 views

Structuring a product catalogue in Wordpress [closed]

I am trying to create a product based content managed website in Wordpress (by clients request). I have created a custom post type where all the products reside, aptly named 'Products'. The products ...
0
votes
0answers
47 views

Rewriting custom post type permalinks gives 404

I am using this code in my functions file to be able to include a post ID in my permalinks for a custom post type. But I am getting a 404 error when I attempt to preview view any of the posts of that ...
0
votes
0answers
47 views

Cannot modify a registered custom post type rewrite slug

I'm using this function in my child theme to modify the rewrite slug from custom post type that was registered on the parent theme. But it doesn't work. function change_rewrite_rules() { global ...
0
votes
1answer
117 views

Creating Multiple Loops in Genesis, One Post then 20, each with custom fields

I need to create a custom loop for a custom post type archive template, that is as similar to this page as possible (www.manta.com/totd) using the Genesis framework. Here is a paste of what I have, ...
0
votes
0answers
49 views

How to use if statements to check and echo terms by hierarchy in a post?

I'm seeing a lot of posts on here with helpful snippets to resolve my problem, but nothing has been specific enough to help me - or I just don't understand how to make those solutions work for my ...
0
votes
2answers
38 views

Creating two loops based on different logic

I'm trying to figure out the best way to go about this and I have part of my solution, but I can't figure out all of it. My ultimate goal is within a certain page template, to show the newest post ...
0
votes
1answer
27 views

How do I Query 2 Custom Post Types?

This is what I have, it works great except it only pulls from one CPT. I need it to pull from two. <?php $my_query = new WP_Query( array( 'post_type' => 'Portfolio' , 'Artwork' ) ); ...
0
votes
2answers
88 views

WP_Query get posts where post_name is empty

I want to get all the posts for which the post_name(slug) is not set/empty as well as a meta_key does not exist. $args = array ( 'post_type' => 'books', 'name' ...
0
votes
1answer
53 views

wp_update_post based function works on existing posts, but not new posts

I have a function that will update the title of the post based on an 'advanced custom field'. It works on existing posts, but not when I create a new post. When I try and save the post and check the ...
0
votes
0answers
29 views

Custom title for custom post types

I need to change the title for a custom post type ("movie") in my site. I added the following function to my functions.php file but I see no changes in the title: function theme_wp_title( $title, ...
0
votes
0answers
49 views

Form Submit Post Front-end with Meta Boxes Included from Custom Post Type Called Testimonial

Before I post this question, I've seen many questions in here but I guess, it still makes me confused and have no idea to implemented it. Case: I've just made Testimonial Custom Post Type by WPtuts ...
-1
votes
1answer
41 views

A call to list all Custom Post Types?

My theme currently uses this code to call all Categories into a list to pull posts from (in the backend) for a thumbnail widget. $mx_categories_obj = get_categories('hide_empty=0'); $mx_categories = ...
0
votes
3answers
49 views

How to Echo Metadata Value in Currency Format

I have a Custom Post Type with a Metabox and an input Text field for adding "Price" to the posts. Now I would like to display the input value which can be like 49 or 59 like 49.00 or 59.00 so far I ...
0
votes
2answers
47 views

Sanitaizing Select Optin For Custom Post Type Metabox in WP

Using WordPress 3.8.1, I have a Custom post Type called "Map" and it contains a Metadata which is a Select options element as: <label for="my_meta_box_select">Countries</label> <select ...
0
votes
2answers
96 views

Issue on Working with Metabox - Checkbox to enable Sale Items

Using WP 3.8.1, I have a Custom Post Type which is called "Sport" and it has a Metdabox - medata data as I do not need to set up online shopping but I world like to add Price of my products to any ...
0
votes
1answer
47 views

Display all post types together

I'm looking to use Custom Post Types to create a simplified process for key individuals to add information to a webpage. Let's use a Job Posting as an example, with custom fields for Job Title, ...
0
votes
1answer
40 views

send email to all registered users when post expires

I have a function which, when a post is published inside a CPT after three days the page is redirected to another URL/PERMALINK. This is the code: add_action('template_redirect', ...
0
votes
1answer
14 views

Function to erase every post from a taxonomy

I'd like to have a piece of code that erase every single post from a taxonomy of a post type when triggered. How can I do it? Thank you.
0
votes
0answers
13 views

Changing Tag, Changes Category in Custom Post Type

I have a custom post type called recipes. Then, I have a taxonomy called r_cat which is to show the categories, such as Diabetic Diet Recipes, etc. I also have tags. What is happening, if I try to ...
0
votes
0answers
23 views

Normal page, can select named page template, but page.php used instead

In other words, for some pages, I set the named template and update, and the change carries through to the front-end. For other pages, wp-admin shows the changed template name, but that template is ...
0
votes
0answers
53 views

How to get duplicate array count with custom post type

After printing array I am getting output like this: Array ( [0] => WP_Post Object ( [ID] => 8 [post_author] => 1 [post_date] => 2014-01-31 ...
3
votes
1answer
35 views

How to not allow custom roles to edit published custom post types?

I have a WP site with a custom role (revisor) and a custom post type (events). What I would like to do is allow my revisors to add new events, but not edit existing. I'm already using the Members ...
0
votes
0answers
56 views

Custom post type pagination, single page issue

After having problems getting pagination working at all for custom post types, I've read that the custom post type name and the page name cannot be the same. So I set out from scratch: I've created ...
0
votes
0answers
55 views

Wordpress Admin Panel Search posts with custom post meta values along with title

Trying to modify default admin search by including search by custom post type fields, Below is my code, function custom_search_query( $query ) { $custom_fields = array( // put all the meta ...
0
votes
0answers
37 views

Custom Post Type Tags Showing Under Regular Post Tags

I have a CPT of Projects that uses the post_tag feature. My CPT tags are also showing up in my regular blog post area under Tags. I added a new "regular" post tag and it also showed up in the CPT ...
0
votes
0answers
34 views

Show Custom Post Type Results

Hopefully someone can help me here. I have a custom post type and with this post type I am able to show the title in a select option. Now what I want to happen is when that title is selected it will ...
0
votes
2answers
74 views

Filter posts by tax (dropdown) and meta value

I'm having a page on which all my custom post types are displayed. I now need to add another to the existing ones: $args = array( 'post_type' => 'bkroadkill', 'post_status' => ...
0
votes
1answer
23 views

How do I amend form data before it is saved for a custom post type

I have a custom post type for clinics which has 3 fields; a textarea for the address of a the clinic and two textboxes for latitude and longitude. I want the user to enter the address in the textarea ...
0
votes
1answer
38 views

How to create a archive template for custom post type [duplicate]

I've created a custom post type using Custom Post Type UI and Advanced Custom Fields plugins. The name of my custom post type is article. I want to have a page which lists all the articles in a ...
0
votes
0answers
27 views

Overwriting a theme function with a plugin [duplicate]

This is a two parts problem. 1) I want to replace the custom post type with custom taxonomy term on my permalink. By default my URL structure is: http://example.com/holiday/remote-brazil holiday = ...
0
votes
1answer
73 views

Use jQuery Datepicker code from plugin

Is it possible to access a plugins' functionality from a page template? I would like to use http://wordpress.org/plugins/acf-field-date-time-picker/ in a custom page with a form, so the user can ...
0
votes
2answers
84 views

Possible to change the slug of default post type?

I have custom post types on my wordpress site and I've set the slugs to say "/blog/{post_type}/{post_title}". I'm using the default post type as a "notes" section, so I want that slug to be ...
0
votes
1answer
51 views

How can I list custom post by custom category?

From some references I wrote a code for create custom post type (journal) and taxonomy using following code. It works fine. Next I am add a new category from admin side for my custom post type ...
0
votes
1answer
37 views

Issue on CPT Custom Menu Position in WP

I have Two CPT as "Dress" and "Casual" and I would like to position them close to each other exactly after the "Dashboard" in the Menu. I have this code in my custom post type for both: ...
0
votes
0answers
63 views

Why is this custom post type defaulting to archive.php?

Working with a plugin (SermonManager) and noticed that, for the custom type defined here (wpfc_sermon), the default archive.php page is being used to render the content instead of the ...
0
votes
0answers
27 views

Multiple WYSIWYG Editor on save redirecting to wp-admin/post.php (Which is page not found)

Hi i'm using custom post types with multiple WYSIWYG fields, on click of update it's redirecting me to wp-admin/post.php (no page found). After making multiple attempts my server blocked my ip and ...
0
votes
1answer
18 views

Custom Post Type or Shortcode, What to choose? [closed]

While developing a multipupose theme for mass audience, i’m facing an issue. I’m going to code staff listing section. Now i was wondering, what should i do? 1: Create dedicated Custom Post Type for ...
0
votes
0answers
14 views

Taxonomy and Rewrite Structure

I have a custom post type (recipes) and custom taxonomy (r_cat). To be quite honest, I'm a newbie and I've tried different scenarios and options from what I've read in various posts and google ...
0
votes
3answers
130 views

Removing Image Sizes for Custom Post Type

I'm trying to go about this without the use of a plugin, but actions and filters Is there a way to remove extra image sizes generated by WordPress based on the Custom Post Type? I've been trying to ...
0
votes
0answers
25 views

How to remove slug from more than one custom post type

I followed this tutorial from WordPress (http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/) to remove slug from custom post type. Now my question is how to ...
0
votes
3answers
37 views

How can I add single catogory for custom post type?

I am add new post type called journal using below code it works fine. But I now I need to add a single category for this post type. That is I have two types of journal category normal journal and ...
0
votes
0answers
68 views

Best Way to Create Multi Level Categories/Taxonomies

I am looking for experience on the best way to create multi level categories. I am building a WordPress site for an organization that sells plant seeds. They have five levels of organizing their ...
0
votes
2answers
40 views

Get data from custom post type to another custom post type?

I'am wondering if i can do this: I have a Custom post type with named Staff, there you can create/add your staff. Then I have another Custom post type called Projects. When I add a new project i ...
1
vote
1answer
90 views

Alphabetical sorting of custom post type - one letter per page

Basically what I am looking for is a way to sort custom post type in alphabetical order and separate each letter, so you have one letter per page. See illustration. Hopefully there is a plugin or ...
0
votes
0answers
21 views

Deregister or disable duplicate check ($post_exists) in cpt saving/updating process

I have registered a custom post type which is ment to bring up 24 posts a year, titles only containg numbers 1-24. I did some rewrites to achive that the permalink structure of this posts will be ...
0
votes
0answers
23 views

Why is a post different than a page with regard to custom fields?

I'm sure the flavor of this question has been beat to death, but why is it that I can add custom fields to pages and other custom page types, but when it comes to posts, the only info I find online is ...
0
votes
1answer
24 views

Printing errors during save custom post type

I am trying to debug my save_post function and cannot get the $_POST array to print so that I can see what's being posted. Please help! add_action ('save_post', 'save_events'); function ...
0
votes
0answers
29 views

Restrict editing of a custom post type based on status and user capabilities

I have a custom post type guest_blog registered with 'capability_type' => 'guest_blog' and 'map_meta_cap' => true. I want to restrict users that do not have publish_guest_blogs capability from ...