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

learn more… | top users | synonyms (1)

1
vote
0answers
32 views

Specific routing for CPT

I'm developing site for art gallery. A have Artist CPT (internal name artsin_artist) which is defined in my functions.php like following: register_post_type('artsin_artist', array( 'labels' => ...
1
vote
0answers
159 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
0answers
87 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 ...
1
vote
0answers
55 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
0answers
775 views

Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure

this is my situation: I have a Custom Post Type named struttura (like accommodation): function custom_post_struttura() { $labels = array( 'name' => _x( 'Strutture', ...
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 ...
1
vote
0answers
594 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 ...
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() { ...
1
vote
0answers
70 views

next_/previous_post_link() `in_same_category` appears to fail when true

I'm using the Modernize theme's custom Portfolio type page. In the single-portfolio.php template, I call next_ and previous_post_link(), which correctly display links when in_same_category is set to ...
1
vote
0answers
70 views

Custom permalinks rules don't match and lost of query var in the process

For my theme i created custom post types (realisation, video). All is working now without the rewriting, but i have trouble when i apply rewriting. my urls are like this : 1) ...
1
vote
0answers
110 views

CPT Parent as a page and CPT Child as a posts

I have one CPT page named as books and one CPT post named as chapters, I am trying to achive this permalink structure here book1->chapter11 book1->chapter12 book2->chapter21 ...
1
vote
0answers
474 views

Wordpress add_permastruct unwanted matches

I'm working on a project which involves filtering some customs posts on the front-end. I managed to create the permalinks including a custom field, but it seems that the rewrite rule matches some ...
1
vote
0answers
89 views

Query custom post types and a specific page?

I'm using this query WP_Query('post_type=product&posts_per_page=8') I need to include a specific page into the query but not sure how to add it since I'm only specifying the custom post type? Is ...
1
vote
0answers
290 views

Custom Post Type - Duplicate Page Slugs

I have 2 custom post type registered in my functions file, sectors and projects. There are pages with the same name and hence URL in both post type. My problem is that WordPress wont allow the same ...
1
vote
0answers
103 views

Custom post type conditional in loop

I need multiple loops on a page and have created them as such global $post; $args = array( 'numberposts' => 3, 'category' => 10 ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : ...
1
vote
0answers
93 views

Custom post type's permalink adds the name of the post type before the post name

So I've create a custom post type which seem to work. however the permalinks of the create posts has the name of the custom post type in-front of the post name. I am getting addresses like: ...
1
vote
0answers
34 views

Displaying and searching Custom Posts

I'm trying to convert my existing web site from old-school HTML to WordPress, and have created a series of Custom Posts for my whisky tasting notes. However, I'm stuck trying to set up a page that ...
1
vote
0answers
124 views

Custom post query by taxonomy

I am using WordPress 3.5. My query is, $args = array( 'post_type' => array('product', 'comic', 'magazine'), 'taxonomy' => 'Genres', 'term' => 'hot', 'posts_per_page' => ...
1
vote
0answers
150 views

Get Tags by specific Category of Custom Post Type

Hey there & merry Christmas Experts :-), if want to have the following Scenario: Custom Post Type "Portfolio" with Tags (Filters) and Categories (Portfolio Groups) Let's say a 1. Webdesign ...
1
vote
0answers
195 views

Post2Post refusing to show linked posts

I'm trying to construct a catalog page, made out of products and product-categorys. I have set up both post types, and set up a connection between them in functions.php (Using the Posts2Posts plugin. ...
1
vote
0answers
191 views

Listing all term items alphabetically / sorting loop

I have my own custom post type and it has its own taxonomy and terms. Whenever user visits http://example.com/mytaxonomy/myterm I want the page to display all items within this term alphabetically. ...
1
vote
0answers
312 views

Single custom post type's menu ancestor/parent is Posts archive page

I have created a theme by copying twentyeleven default theme. I have also installed a module Custom Post Type UI and created a custom post type called "Book". I have gone to Settings -> Reading ...
1
vote
0answers
74 views

can these 3 queries be re-written as 1 query?

I am creating a Dentist directory site, and I have a taxonomy archive page which requires particular grouping and sorting (see below). So far I have only been able to achieve this using 3 WP_Querys ...
1
vote
0answers
49 views

How do I list terms of a custom taxonomy at i.e. domain.com/brands/

I have a custom post type 'products' with custom taxonomy 'brands'. My URL structure should be: domain.com/brands - should list the brands domain.com/brands/brand/ - should list products of the ...
1
vote
0answers
67 views

Custom taxonomy and post type with same slug

I'm using the plugin "types" to register the custom taxonomy and post types, and got 404 when using the same slug for them to display them hierarchy, like this: site.com/tax //taxonomy archive ...
1
vote
0answers
117 views

Losing Nav Active State in Menu

In the following section: http://www.zimmernutrition.com.php53-23.ord1-1.websitetestlink.com/learning-center/ In the sidebar, if you click "Health Articles" and click one of the categories, the ...
1
vote
0answers
55 views

Listing and accessing categories for a custom post type

I have two post types: Projects and Events. I want each of these post types to have their own categories: Upcoming and Past. I have an archive page displaying the posts in these types. However, on ...
1
vote
0answers
392 views

Wordpress custom taxonomy template not working

I installed theCartPress plugin and it created tcp_product_category taxonomy for tcp_product post type. I created a page with custom template to list all the product categories. I can use ...
1
vote
0answers
157 views

dropdowboxes with pre-selected custom fields optios that filters the results according seach needs

In my site I have one custom post types with custom taxonomies: custom post_type=listings --> Category --> Tags Along with it, I have some custom fields to separate them by country, state, region. ...
1
vote
0answers
194 views

Custom post type pagination - always return first page

I have custom post template archive-product.php for custom post type "product". In this template paging does not work: numbers are displayed all numbers links redirect to first page ...
1
vote
0answers
83 views

Listing custom terms in custom post meta

I'm trying to list custom taxonomy terms (using get_terms) from within the custom post meta code (i.e., via the add_meta_boxes action). I am getting "Invalid taxonomy" return from the call to ...
1
vote
0answers
66 views

Show fields based on taxonomy selection in editor

I use GD CPT plugin for custom taxonomies and post types. I wonder if it is possible at all to change the fields user sees in the editor, based on something else (lets say a taxonomy). Example: I ...
1
vote
0answers
138 views

Manage Columns : order by post_parent's title

I have 2 custom post types : "industry" (page + hierarchical) and "product" (post + hierarchical). This allows me to use Industry for Product's post_parent. On the Product manage screen, I have a ...
1
vote
0answers
508 views

Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it

I'm trying to output a custom post type archive using a shortcode. Everything works fine except for the get_next_posts_link part. The weird part is that it's right next to a get_previous_posts_link ...
1
vote
0answers
176 views

Some posts from custom post type to subdomains

I have custom post type where all posts associated with some persons. Like: mysite.com/masters/master-name/ And i need to have redirection from master-name.mysite.com. This redirection will be ...
1
vote
0answers
273 views

Wordpress subpages to custom post types

I have created a CPT like this: add_action( 'init', 'create_media' ); function create_media() { $labels = array( 'name' => _x('Media', 'post type general name'), 'singular_name' => ...
1
vote
0answers
452 views

filter search custom field query

I'm looking for way to filter search results. This is what I have so far a custom post type of "doctors" in each "doctor" post, there are numerous custom fields (male or female, location, ...
1
vote
0answers
160 views

Grid Filter Dropdown from Custom Post Type goes blank on Submit

I am trying to filter a grid of players based on the clubs they are in. Players and Clubs are both custom page types Now the Dropdown renders ok on first visit - rendering several teams ok - when the ...
0
votes
0answers
8 views

User field and access post

I’ve create two custom post type (all'code here). I use the ACF Plugin to create custom post and 've create a relationship user field with the field name "sleziona_cliente". I create a cpt post and ...
0
votes
0answers
6 views

Media Uploader is not working in default rich text editor in my custom plugin

I am working on my custom plugin that will store records in its own database tables. I am willing to add contents via WordPress default rich text editor. I found some code on WordPress stack exchange ...
0
votes
0answers
15 views

Display random posts from custom posty type

I am trying to display my posts in a random order and selection using the following code with no luck. Any ideas whats going wrong? <?php $args = array( 'post_type' => 'publicity', ...
0
votes
0answers
19 views

Page to show custom posts and one category

I want to show all my custom posts and category ID=15 in a page. I managed to call my custom posts as follows: $type = 'my_custom_posts'; $args=array( 'post_type' => $type, ...
0
votes
0answers
47 views

70.000 custom posts on my site

My site have more than 70.000 custom posts. Admin panel not show all posts. how to fix it ? Month filter: more than 4.000 posts. it's normal.
0
votes
0answers
23 views

URL/Permalink customization for Taxonomy/Term archive & post

I have a CPT called "Provider", taxonomy called "State" and a term called "Alabama". Is it possible to change the following URL structure from: 1. http://localhost/state/alabama (to view all the ...
0
votes
0answers
11 views

404 page is not querying my custom post

I have a 404 template page which is, obviously, designed for Not Found Pages. Within the code, I have the get_header(); where I place the global code for the site. There is a div that contains a style ...
0
votes
0answers
12 views

Cusom post type archive in sidebar widget counter of post

add_filter( 'getarchives_where', 'custom_getarchives_where' ); function custom_getarchives_where( $where ){ $where = str_replace( "post_type = 'post'", "post_type IN ( 'post', 'podcasts' )", ...
0
votes
0answers
14 views

Custom frontend post not working?

Hi I am creating a custom post front end submission. This is my code to submit the custom post details. Here the validation is not working as well as it will not submit the post. When i submit the ...
0
votes
0answers
21 views

connecting two post types or functions

Alright, so I have started asking related questions to this bout 4 times now trying to figure out what exactly I need to ask without making it too complicated. So I've got two examples of this that ...
0
votes
0answers
28 views

Custom taxonomy from custom post type

Trying to have a set of categories for every custom post type. Book (custom post type) -> category (custom taxonomy) -> Adult / Teenage / Kids Movie (custom post type) -> category2 (custom ...
0
votes
0answers
13 views

Template for Taxonomy and all its Terms

Hy! I've searched high and low, up and down, left and right to find an answer. I've tried all that I have found, even the ones that are suggest for the title I wrote. I am working on a theme under a ...