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

learn more… | top users | synonyms (1)

2
votes
2answers
1k views

Custom query variable - get wordpress to redirect to nice permalink url

I have been looking for an answer for the last couple of hours but could not find anything pointing me in the right direction. Some advice would be very much appreciated! What I already have: A ...
0
votes
1answer
3k views

Advanced Custom Fields: query posts filtered by multiple field values

I have the following: custom post type: q-and-a custom taxonomy: q_and_a_category taxonomy terms: design, engineering, project-management I'm creating three separate pages that filter the custom ...
1
vote
1answer
385 views

Permalinks for Taxonomy and Custom Post Type

Have the following situation here: Custom post type: 'recipes' Taxonomy for custom post type 'recipes': 'receitas' One of the taxonomies slug: 'receitas-whoopie-pie' The permalink structure MUST be: ...
1
vote
1answer
159 views

Form action doesn't work if slug isn't same as custom post title

I'm facing the following situation, i've created an event-custom-post-type and display those with a single-event.php template. I've also implemented a signup-form in that template and all worked just ...
0
votes
1answer
82 views

Repeatable Custom Field for Media Upload

I am following this topic to add a repeatable custom field for my Custom Post Type, but I cant get it to work for a media upload, Which will allow the author to add multiple image by uploading or ...
0
votes
1answer
68 views

Storing postID in session variable to query database when visitor on custom template page

I have an application with 3 custom post types, A, B, and C. The post types B and C are related to A using acf relationship fields. I've designed a single template for A post types. When viewing this ...
2
votes
1answer
202 views

How do I organize photos for multiple galleries?

I'm working on a site that will ultimately have dozens of photo galleries, each gallery with at least 3-4 photos, and possibly up to 20. Individual photos won't have captions, titles or any other ...
3
votes
2answers
4k views

Change the edit page for a custom post type?

I've been looking for this all day and can't find it. I'm working on a custom contacts page and I am using the custom post type feature so that I can have more control over it. I'm looking to change ...
0
votes
0answers
267 views

Custom post type name and url parent/child structure 404 issue

I'm having a conflict between the name of my custom post type and my url structure. I've got a custom post type called 'timber-frames'. The 'timber-frames' landing page uses a page template that ...
1
vote
2answers
139 views

How to change custom post type position from backend

I have registerd a post type called Books in function.php and this post type will display only for editor role. Now when i am login with my dummy editor i am seeing two post type one is Books and ...
0
votes
1answer
36 views

Turn on and off custom post type from admin?

Is it possible to "deactivate" a custom post type and then later if you feel like using it again you can simple "activate" it again?
1
vote
1answer
55 views

Adding custom image sizes and post types to a plugin or to a theme?

I'm just getting started but want to play around in the right area practicing for a new personal site/theme. Part A: I want to add featured images (and a few new image sizes) to a blog portion of a ...
0
votes
0answers
21 views

Add 2 Taxonomies to Custom Post

I have created a custom post type "beers" and added a custom taxonomy "distributor" as a category (see below) register_taxonomy("distributor", array("beers"), array( ...
0
votes
1answer
120 views

How to concatenate two separate colums into one?

In phpmyadmin I have two separate columns for latitude and longitude. e.g. lat: '38.897683' lng:'-77.03649'. These coordinates are generated for my location custom posts. How can I automatically ...
1
vote
1answer
736 views

How can I filter by taxonomy on a custom post type's page?

Right now I am outputting the related categories to the current displayed post type as shown below. I am using wp_list_categories to list out the categories and it works just fine. The only issue is ...
0
votes
1answer
771 views

Category Name with Custom Post Type

Hopfully I can explain this, I'm confusing myself now. I have Template called 'Landing' that is the template for a number of different pages in Wordpress. Each of the pages using this template will ...
1
vote
0answers
787 views

using wp_update_post for updating custom post type

I'm trying to update post_parent of wp_posts in WordPress database. I've created a custom post type with capability_type = post , but I want it to behave like a page: hierarchical, allowing parent ...
1
vote
1answer
268 views

How to check if a WP_Query has data

I have the following WP_Query, which works great: <h4>Frequently Asked Questions</h4> <ul class="faq"> <?php $args = array( 'post_type' => 'questions', ...
0
votes
1answer
125 views

How to add a class to meta boxes (to customize them in CSS)?

I have an situation: I just can't figure out how to add classes to some meta boxes. I read these post from here, I tried this solution, but it did not work as I wanted. Is there a way to add classes ...
0
votes
1answer
116 views

Problem while filtering by 'category_name'

I have the following code in order to display a custom WP_Query: <ul> <?php $args = array( 'post_type' => 'preguntas', 'posts_per_page' => 50, 'category_name' => ...
0
votes
1answer
1k views

custom post type paging not working past page 3

I have a custom post type called services which has 23 custom posts, i also have a custom taxonomy for all the categories (5 categories). I am trying to create a list of all the custom posts of ...
0
votes
0answers
136 views

One-time bulk MySQL copy post_date values to Advanced Custom Field (date field)

Disclaimer First of all let me say this is probably mostly MySQL related and unfortunately I'm nearly a total newbie on database language and commands. The problem Situation is a site running ...
0
votes
1answer
830 views

How to get custom metabox image field?

i have custom metabox with the image field, i can upload image from wp-admin to this metabox, metabox code array( 'name' => 'Burst Image', 'desc' => 'Crop your image to ...
0
votes
1answer
89 views

data-type=“” … needed post tags stripped of characters

So I am trying to generate a list of post tags on the data-type attribute but I need them to be sanitized so spaces are replaced with underscores and there are no special characters... really ...
0
votes
2answers
250 views

CMB select with data from CPT

I'm using the CMB framework for creating metaboxes (https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress) and I want to add a select box which prepopulates with titles from a custom ...
0
votes
3answers
439 views

make permalink go to a custom single.php file

hope somebody can help me with this because I am struggling for a while. I want to use two single.php on my website, one to display the regular posts and another to display some products that I will ...
0
votes
1answer
1k views

Use WordPresss menus with anchors

I have a CPT archive page and I want to create a navigation menu which will jump to anchors in the form <a name="post-slug" http="{the permalink goes here}>The CPT Title</a> I have been ...
0
votes
1answer
139 views

custom post types missing ADD NEW

Having a bit of fun with custom post types. I use http://generatewp.com/ to generate the following custom post type to record partner organisation records. Things working: custom post type appears ...
1
vote
1answer
129 views

Single Page Wordpress CSS and JS links

i got a custom template with blog post in it... In my header.php, inside the <head> i have my links like this ... <link href="http://www.mysite.com/css/design.css" type="text/css" ...
0
votes
2answers
39 views

Is there something like has_no_term

I have a custom post type named 'Projecten' with a taxonomy called 'fases_projecten', in there i have 'concept', 'inontwikkeling' and 'gerealiseerd'. In my template I'm using the following code for ...
1
vote
2answers
57 views

How can I get the first 50% of all posts (within a custom post type)?

I'm trying to make a multi column layout. Seen as CSS3 adoption of column layouts is still thin on the ground, I was thinking maybe I could grab the first half of all my posts (and then the second), ...
0
votes
1answer
188 views

Custom Meta Box Causing Error: “Are you sure you want to do this? Please try again.”

My custom post type have a meta box that is listing another custom post types in its meta box. And it is causing error each time I try to publish a post with that custom post type. It is always bring ...
0
votes
1answer
42 views

Make meta box appear if the previous if not empty?

I have created a custom post type with the ability to have multiple featured images. However, it would be nice if i didn't have 10 empty boxes on the post page asking for images... I would like a ...
0
votes
2answers
662 views

Query based on custom fields start and end date

I have a custom post type called Events, with 2 custom fields, start date and end date. These fields are stored using a timestamp in the database. I want to create a custom query based on these 2 ...
0
votes
1answer
2k views

Custom post type: can't enable comments by default

I want to enable comments for custom post types just like they are for standard posts, but can't seem to get it to work. In functions.php, as part of registering my custom post type, I have this: ...
0
votes
1answer
113 views

Add html to cpt main page / admin edit.php

I want to add some html under the title of a custom post type I created. See area in image here: http://i.stack.imgur.com/rpkV3.png I tried using different methods including post_row_actions ...
0
votes
1answer
128 views

Show a custom field instead of username in the backend author area

I'm building a new WP site with about 1200 authors(which are actually companies, pulled from my client's existing site), each attached to at least one custom post type. My problem is the admin(our ...
0
votes
2answers
2k views

Creating a gallery of featured images from custom post type

I am new to Wordpress and am busy using it to create an online portfolio site. I have created a custom post type for my portfolio items called 'Portfolio', and I have attached a featured image to each ...
1
vote
2answers
253 views

Is slug “type” reserved and can't be used in taxonomy rewrite?

I desperately need your help guys. I am trying to register custom post type and taxonomy the following way: add_action( 'init', 'product_catalog' ); add_action( 'init', 'product_type', 0 ); function ...
0
votes
0answers
185 views

How to Create Custom Post Type with Multiple Color Options?

Can you please let me know what is the best choice to create a Custom Post type like "Pen" which has Taxonomy called "Brand" now each of these post has definitely Black color which I will use as ...
0
votes
3answers
641 views

Get only used meta_values

this is how I'm getting the meta values: $apart_locations = $wpdb->get_col( "SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = 'postal_location' ORDER BY meta_value ASC" ); This is how ...
1
vote
1answer
78 views

Change 2 fields in the post depending on the 3rd field before save

I have a custom content type called cards. I have 3 custom meta fields called: my_cards_activity (select field type; options 0 and 1) my_cards_user (select type; many options) my_cards_datetime ...
2
votes
3answers
181 views

Custom meta fields for specific custom type only

I've got a custom post type curiculum and a metabox that saves a value to a custom field. However this custom field is added to another custom post type (created by an e-commerce plugin) wpsc-product. ...
0
votes
0answers
276 views

Listing terms used by a custom post type (the taxonomy is shared across multiple CPT)

I have multiple custom post types and they share some custom taxonomies. I want to a (hierarchy format) drop down of only the terms used by a specific custom post type - the drop down will be the ...
0
votes
1answer
34 views

Getting the taxonomy

I have the following query along with a custom post type called "Questions": <ul> <?php $args = array( 'post_type' => 'questions', 'posts_per_page' => 50 ...
0
votes
3answers
613 views

List custom post type but redirects to home page

here is my problem. It's been around 2 hours that I try to have a page listing all projects (they are a Custom Post Type) so I'm trying to have an archive file named archive-projects.php but when I ...
1
vote
1answer
137 views

Missing Posts in Custom Taxonomy List

Symptom: A custom post type assigned to a taxonomy does not appear in the admin table listing all posts with a specific term attached. From my dashboard if I click on the taxonomy under the custom ...
0
votes
1answer
191 views

Issue on adding Icons to Custom Post Type

Can you please take a look at following code and let me know why i am not able to add icons to custom post type? add_action( 'admin_head', 'my_icons' ); function my_icons() {?> <style ...
0
votes
1answer
265 views

All blog posts are not showing up

This post may already exists but I just missed it in how I searched for it. Here goes. I have recently changed my blog back to the Genesis Framework. I am using the Nameless child theme. These are my ...
2
votes
1answer
117 views

How to sync tags between posts that are linked through Posts 2 Posts?

I am faced with a thorny problem and can't seem to find the solution in the wealth of community knowledge on the web. I have two custom posts types "Person" and "Activities". I use posts 2 posts ...