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

learn more… | top users | synonyms (1)

1
vote
1answer
458 views

Custom Post Type Pagination & duplicate posts

I'm working on a template which will use some custom-post-types & custom-taxonomies.. I'm having problems with pagination and duplicate posts. HOME.PHP LOOP #1 On the homepage (home.php) I have ...
0
votes
1answer
6 views

An archive page without post types (just default post)

I'm trying to get posts with not marked with any type of post types (aside, audio etc). But I didn't find any solution to doin' this. I throught doin' this with custom fields but site has a lot of ...
0
votes
1answer
14 views

Fancybox loading small white square

I know there is a similar topic with same title, but my problem is not the same.Fancybox was working perfectly in my html template, but after converting it to wordpress, images are not showing in the ...
0
votes
0answers
14 views

Create custom post on user registration and include custom fields

I am trying to create a custom post when a user registers. I found the solution below very helpful and it basically works. The problem I have is that I also need to set some custom field values when ...
1
vote
2answers
536 views

Custom Post Type Taxonomy Filters

Im really struggling to piece this functionality together, and hope someone can help or provide snippets to get me there. So I'm creating a section on a website where stories are published, I have ...
0
votes
1answer
25 views

Getting custom taxonomy posts on archive page

Hi I am not sure if the question is understandable or not but what I am trying to achieve I will explain. I have a custom post type called menu item and custom taxonomy called menu item type. CODE ...
0
votes
2answers
32 views

How to add multiple images to custom post type?

I would like to create a simple plugin to add multiple images to a custom post type. I have created a plugin to add a single image to a custom post type, but I am unable to figure out how to add ...
0
votes
1answer
19 views

orderby parameter not working in custom query

I have a really strange issue for a site I'm updating... All I want to do, is have it so that the posts come in descending order instead of random. I have the following code, but when you change it ...
2
votes
1answer
564 views

Sort posts based on multiple custom fields

I have a three custom fields Meta Key → YOUR_PREFIX_newcar_body_type Meta Key → YOUR_PREFIX_newcar_transmission_type Meta Key → YOUR_PREFIX_newcar_variant and I have to sort posts ...
0
votes
0answers
12 views

Rewrite pages and custom post type

I created a post type named soft_drink with a rewrite rule of /my_soft_drinks/%soft_drink%. my_soft_drinks is also a page slug. In my menu structure has the page soft_drinks parent submenu items. When ...
0
votes
1answer
25 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, ...
11
votes
6answers
4k views
+150

Integrating a custom post type into a page hierarchy

I'm creating a theme with a custom post type for team members, I've also got the following page structure: about <-- this is a page about/team-members <-- this is a page, lists all the team ...
0
votes
0answers
23 views

Show Custom Field

i am using WCK - Custom Fields and Custom Post Types Creator. I am have code for show image. <?php $my_meta = get_post_meta( $post->ID, 'my_meta_name', true ); if( !empty( ...
0
votes
2answers
1k views

Prevent pre_get_posts filter on specific post type

I am running into one issue with pre_get_post filter. Actually I have 4 post types. Post, Pages, Events, and Venue. I created one custom field called city for event and venue post type. When ...
0
votes
2answers
238 views

404 Error On Custom Taxonomy Pages 2, 3, etc

I've been reading a bunch of posts about this with no luck so far. I can't seem to figure out what is the problem. I have the following: Custom Post Type: Sermons Custom Taxonomy: Series My urls ...
0
votes
1answer
25 views

Repeatable WordPress custom fields in a metabox

I would like to create a meta box where the user can add or remove a simple input field that holds an image url on posts.
0
votes
1answer
928 views

Conditional two level dropdown filter for custom post type

I have set up a custom post type and taxonomy. The post type is called Local Services and the hierarchical taxonomy is called Regions. The Regions have child categories called Areas. I have set up a ...
0
votes
0answers
7 views

auto order posts of custom posttype by title

i have a custom posttype which has more than 50 posts... i want to reorder alphabetically ...so that each time i post anything the system automatically reorders... plz dont suggest post order plugin ...
2
votes
1answer
711 views

Get all posts from custom post type and insert in select input as metabox

I would like to know if its possible to do something like this. I have Slider custom post type and Services custom post type. For slider posts I have created a metabox for URL value to display next ...
1
vote
3answers
639 views

Get post type in header.php

I'm creating menu in wordpress and I would like add class="active" to link when its page is active. I'm not using inbuilt wordpress menu feature. I'm making menu hardcoded in header.php because ...
0
votes
0answers
13 views

Archive.php is not displaying tags

I have a fairly standard "if" construct to detect what archive.php should display (see below) I also have a custom post type and a custom category. When a user clicks a displayed category (taxonomy) ...
1
vote
1answer
251 views

How can you group custom post types in the admin sidebar?

Is there an easy way to group custom post types on the admin sidebar menu? The reason i ask is because i want to try to accomplish the following: I've created a custom post type titled "Latest News" ...
1
vote
1answer
13 views

Display 1 Post per taxonomy with polylang

I am trying to make a loop where I display all my taxonomies with the first post of every taxonomy. It's the taxonomy "customers" and I want to display every first portfolio-CPT of the customer. I ...
0
votes
1answer
10 views

Unable to get the upcoming events for custom post

I have custom post ='events' and there is custom field 'event-start-date' for each events. I want to show the upcoming events for which I am using the following code. $date_today = time(); ...
1
vote
2answers
699 views

Display posts from Custom Post Type in category page on front-end

I created my Custom Post Type (bizdirectory), created a new post (Test Business) and created a new category (Business Directory). But if I add the Business Directory category (slug = business) to my ...
0
votes
0answers
16 views

Appropriate hook for filtering the posts from the admin page

I am currently developing a custom post type and I would like to know which hook I should use in order to filter posts by category. Can anyone please tell me how to do this?
0
votes
2answers
58 views

Filter second dropdown (tax) based on first dropdown (cpt)

I've been googling and attempting this for over a week now with no success. I have a few custom post types (books, films, music etc), and a custom taxonomy (location). On my frontpage, I have two ...
0
votes
1answer
276 views

rewrite rules hierarchical

I want that my WordPress follow this rules: /productes/ a page with all products /productes/[category]/ a taxonomy-page with all products of the category /productes/[category]/[subcategory]/ a ...
0
votes
1answer
20 views

posts_nav_link on single post template

I have a post type called journal and on the single-journal.php template I am querying the rest of the journal posts like so: <?php query_posts( array( 'posts_per_page' => 4, ...
1
vote
1answer
1k views

Rewrite rules for custom posts types

So I created a new post type 'quote'. Basically I want to change all quotes URLs to domain.com/quotes/ID since as it as right now (/?quote={xxx}) could get pretty long, and since this post type is ...
1
vote
1answer
331 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
3answers
35 views

Adding Custom Taxonomy to WordPress default Post type

I am trying to add custom taxonomy (tags) to WordPress default post type. because I wanna use that taxonomy for custom post type as well. // Register Custom Taxonomy function tag_synchro() { $labels ...
0
votes
1answer
11 views

How to retrieve the permalink for a specific (custom) term?

I would like to display the list of categories related to particular post? <?php while ( $faktory_panes_query->have_posts() ) : $faktory_panes_query->the_post(); $post_id = ...
1
vote
0answers
270 views

Exclude custom taxonomy term posts from custom post loop

I have a custom post type set up called projects with a custom taxonomy called categories that has a number of terms. For one of them called archive I would like to remove its associated posts from ...
1
vote
2answers
36 views

Custom Post hierarchical to custom taxonomy

I have created a custom post type and a custom taxonomy. The issue is that I can not make the custom posts hierarchical with the categories it is in. I have the following code, function ...
0
votes
1answer
339 views

Create a custom taxonomy template that loops through child categories in term order?

We're building a site that sells Biking Gear We're using the Genesis Theme Framework, and developing a custom child theme. It has a Custom Post Type for Products, made with the "Custom Post Type UI ...
0
votes
2answers
381 views

Inserting data into `post meta` table?

How would I be able to insert data into the post meta table? I know how querying and wpdb works but I have no idea how I can just insert it into the table. I have these two fields I want to insert ID ...
1
vote
1answer
559 views

Custom Post Type permalink shows wrong page: homepage/index.php

Hello I am working on a project where I need to have custom post types. Creating the post types and making them show up in my admin menu was a walk in the park using the following: add_action( ...
2
votes
1answer
487 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
1answer
13 views

Query posts and custom post types within the same category

i have a filter on my template which returns posts from a given category and displays them in a slider gallery. This is the code: <?php if (is_page()) { ...
1
vote
2answers
728 views

Where are wordpress custom types stored?

Where are custom types stored? Because when a custom type is created, in wp_posts, the post type is set to the <new_custom_post_type>. But where are the details of the new custom post type ...
1
vote
0answers
18 views

Is it possible to have a custom post type with feed but without the archive?

In Wordpress 3.9.2 I couldn't find the way to have a custom post type which would have the feed permalink like this: example.com/custom-post-type/feed/ But didn't show the archive (show 404) ...
0
votes
0answers
14 views

Filter RSS feed for custom post type to events for next 7 days only

I'm trying to create a custom RSS feed that shows posts from the custom post type 'events' for the next 7 days ahead only. The feed is already sorted by event start date order rather than published ...
0
votes
0answers
13 views

Cherry Framework Categorys not working on custom post type

I am using the Cherry Framework. In a child theme i have added a new custom post type and set it to use the built in category and post-tag taxonomies. I have added this to my theme.ini in my child ...
-1
votes
0answers
28 views

Jquery colorbox doesn't have navigation arrows for custom post type [on hold]

I have custom post type events . For each post i have an embedded gallery with all images being linked to media file.I am using the following code to get the gallery and display all the images for a ...
0
votes
0answers
23 views

Meta-Box to add multiple items one at a time and on publish save all

My example custom content type is for recipes. There will be a meta-box for ingredients. In this meta-box there will be three attributes and a "add" button. Name Measurements Notes Add Button My ...
0
votes
0answers
26 views

Redirection loop error after login from a custom post type post

I have created a custom post type called portfolio so such posts have an url like this: mydomain.com/portfolio/post-name/ This is fine so far, however i just found I am having a problem with my ...
1
vote
2answers
304 views

Custom post type paging 404 error

I've an issue on custom post type, I've create a custom post type called "Agenda" and the rewrite url for http://example.com/agenda it works correctly, it points to the archive-agenda.php template ...
-1
votes
0answers
10 views

Pre-populating Formstack option with Custom Post Type titles [on hold]

So a client has an "Employment Application" on Formstack. They create a post on WordPress in a CPT title "Job Openings". The titles of all the "Job Openings" are then placed into a dropdown list on ...
0
votes
1answer
20 views

How to programmatically add elements in a custom menu

In my WP custom menu, one item has a dropdown list below it that lists all instances of some CPT. The only way I know to do that is by creating the list somewhere else in the DOM with PHP and then ...