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

learn more… | top users | synonyms (1)

0
votes
1answer
187 views

Repeatable custom meta select boxes

I am working on meta fields for a custom post type storing match data. I have two sepearte meta boxes one which the team and the score are chosen and the values are submitted. The second takes that ...
0
votes
1answer
520 views

Getting (Invalid) when adding custom taxonomy of custom post type link in menu [closed]

I am getting this message when I am trying to add a link to my menu: I have created a custom post type and a custom taxonomy <?php /* Plugin Name: Portfolio - Custom Post Type Plugin ...
0
votes
2answers
530 views

List Categories (wp_terms) and count posts

I have a problem (of course) and I'll go straight to the point: I need to list all the custom categories and count the posts for each category eg. Category 1 (xx posts) Category 2 (yy posts) etc.. ...
0
votes
3answers
350 views

shortcode for recent custom type post

I'm not a coder so I may have done some "coding" crimes, apologies. I've bought a theme who has shortcodes for last posts but not for last "custom post type". So I tried to create last "custom post ...
0
votes
1answer
1k views

Display custom taxonomy posts of custom post types

I have created a custom post type "Portfolio" and a custom taxonomy "Kind" which includes "Websites", "Graphics", "Programming". What I want to do is to create 3 different pages "Websites", ...
0
votes
2answers
48 views

Checking 2 dates against todays date

I am trying to display data from a custom post type, based on the date that the event will occur. The date is set in a meta box in the cpt. My code so far is: $today = date('d/m/Y'); $p_date = ...
0
votes
0answers
24 views

Custom Post type field don't show in single machine

Strange problem i am facing is that in one machine the custom post field don't shows up ( in all browsers chrome, FF in that particular machine ). But The same user login to different machine then it ...
0
votes
0answers
75 views

WP Build-In Post selector for CPT

I'm quite sure to remember any WP build-in function that generates post selector based on several args (post_type, etc.) like on the nav-menus admin page, here a screenshot: Is there something like ...
0
votes
1answer
73 views

install.php Custom Taxonomy Term not being added to custom post

So I am stuck on this problem that I am facing when creating a custom taxonomy term in a install.php file. So I am running a WP multisite, and upon new blog creations, I am trying to auto create ...
0
votes
0answers
127 views

Linking custom post types to posts and vice versa

Im developing a smaller wp solution and we have both blog posts and products (custom post types) Id like to link them together so when you read blog posts it will suggest relevant products (that we ...
0
votes
1answer
332 views

If tag exists, then echo once

I have the following code and I'm trying to check to see if a specific tag exists, and if so, I need to echo it once. The problem is when the tag exists in multiple places, it echos multiple times. ...
0
votes
0answers
194 views

Set Custom Post Type in Widget Settings for use in Widget

I'm trying to dynamically list all of CPT's in a dropdown, set one in the widget settings and then echo that value in the actual widget output. I can't seem to get it to work though. I was trying to ...
0
votes
1answer
31 views

How to retrieve taxonomy terms of the current custom post?

I have a custom taxonomy worktype and I have 3 types in this latter custom taxonomy: - creation - collaboration - lab I have also a custom post type "works". worktype is used only for the custom ...
0
votes
1answer
74 views

Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites

I've built two WordPress sites. One is public site--people go to it, view my content, etc. The other site is a private course catalog. In the course catalog I have 3 custom post types. The content of ...
0
votes
2answers
556 views

Create shortcode for list of custom post titles with custom fields alongside

I'm stumped. I've looked at various sites but haven't found the exact code I need. Basically I want to create a list of custom post titles with the date from one of the custom fields for that post ...
0
votes
1answer
419 views

Display custom posts in checkbox list

I am working in a WordPress backend design and I would like to know if is there any function like wp_categories_checklist but for posts. I have an issue here: ...
0
votes
1answer
130 views

Multiple Block Quotes without using HTML

First of all, I have a client that has no HTML knowledge. He wants his all his posts to have a certain format where within the post body, he can add multiple pull quotes with different styles. Note ...
0
votes
0answers
46 views

Use global query parameters in new WP_Query for presenting separate results in tag archive

wp_reset_postdata() does not seem to work here. I'm building a custom tag archive template, which should feature results from different post types in diferent boxes. <?php $query_stringa= ...
0
votes
0answers
89 views

Get posts that have custom post type value

I have a custom post type called Authors where you can choose an author for that post (authors don't have user account so I went down the custom post type route). I am building an "author profile" ...
0
votes
1answer
35 views

Change display wp post type to wp custom post type

i have this code below to display wp post based on category but what i want to display wp custom post called 'wiki' based on its category. CPT wiki is from plugin, so i think already defined. class ...
0
votes
0answers
82 views

Ranking authors by post meta value

I have custom post-type with custom post-meta and i want to rank authors by post meta value.I can show the SUM of a meta value on author page with this code <? php $points = ...
0
votes
0answers
33 views

Fields for different parts of a page

I'm going to use WordPress to manage a mainly static website. Some of the pages (like the typical about us) have some paragraphs that should be editable from the admin panel. The thing is, I don't ...
0
votes
0answers
54 views

Custom taxonomy template

I make two custom post type called (movies and serials) and one custom taxonomy called (directors). When I go to /directors/namedirector I don't see movie. I need help to make query or template for ...
0
votes
0answers
190 views

Sitemap generation

I have have a few pages on my site that walk through a process of querying a custom post type (services) with it's taxonomies (locations) -- example of custom post type (services) and example of ...
0
votes
0answers
23 views

Page vs Custom Post Type - which to use [duplicate]

I am creating a few pages (Company, Offices, Contact) and would like to have custom meta boxes for each of those pages. I want the meta boxes to be different for each page, and I don't know if that is ...
0
votes
1answer
73 views

Sort custom post type items by taxonomy description

I want the portfolio items to be arranged in custom order (based on the category descriptions which I use number values to order) Current order <ul id="portfolio-cats" class="filter clearfix"> ...
0
votes
2answers
408 views

Save post_parent in a custom post type

I'm using the save_post action to save some meta data in a custom post type: function my_save_post($post_id) { // is autosave? if(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { ...
0
votes
0answers
212 views

Can't preview custom post - Redirected to home page

When I click on preview in custom post types I get redirected to home page. But when I visit or view the page that have all the Custom posts in I can see all of them. I cant figure out what or why. ...
0
votes
0answers
78 views

Display results from two Custom Post Types in page template

What I have is Created a new page with slug monuments Created a template file at my theme's folder that will show all records with post_type monument. [UPDATE] 3.I forgot to mention that each ...
0
votes
1answer
266 views

Display posts order by custom post in a dropdown menu

In my WordPress backend I have some custom posts and, in one of them, I want to display in a dropdown field some posts related with but ordered by post type. Iwant to display something like this. ...
0
votes
2answers
97 views

get all posts from a custom post type

I'm trying to get all posts from a particular custom post type using the following code: $auctions = get_posts(array('post_type' => 'auction')); print_r($auctions); echo '<select>'; foreach ...
0
votes
1answer
251 views

How to create a permalink for custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name

I found this link too much helpful. This is what I code so far and got it working for all scenarios except two scenarios. register_post_type( 'article', array( 'labels' => array( ...
0
votes
2answers
719 views

Save Custom Fields

I am working in a new project using WordPress. I have created some Custom Posts and now I have to relate some custom posts like categories. I created a custom dropdown menu inside the custom posts. ...
0
votes
3answers
158 views

Create a page selector using taxonomies

I have created a custom post type and assigned a term from a custom taxonomy to each page within this CPT. I want to create two select boxes on the front end of my site. I want the 1st select box to ...
0
votes
1answer
2k views

Custom Post Type - Rewrite slug [duplicate]

I have a custom post type (products) that I would like to change the slug for. I have a main product page that shows all product categories. After clicking on the category, it shows all products in ...
0
votes
1answer
48 views

Taxonomy query of custom post displays archive instead of posts

I'm facing a strange issue displaying all posts of a certain type of custom post sorted by their category. The code below to display them works fine locally but when I view the page on the server it ...
0
votes
0answers
327 views

How to show selected value in dropdowm menu

I have a problem, I want to show the user the selected value the user has selected before. I have a custom post type I have created and I have also a separate plugin that's using a custom db. What I ...
0
votes
0answers
19 views

Pagination won't go to page 2 [duplicate]

I've created a page which uses posts 2 posts and pagination The pagination will not go to page 2, every time I click the link it reloads the page, however hovering over the page two link shows the ...
0
votes
0answers
105 views

Bulk remove category from custom post type?

I know you can use bulk actions to add categories but how do you remove them in bulk? I have a custom post type that is using a category (as status) and it needs to basically be toggled in bulk and ...
0
votes
0answers
72 views

Custom Post Type Feed displaying all posts

I'm having some problems with an RSS feed for a custom post type. If you view this URL http://intentional.wpengine.com/feed/?post_type=30daychallenge you'll see a raw feed. Everything looks to be fine ...
0
votes
1answer
66 views

Post content stays the same but permalink changes ?

This is really weird. I made a posttype ' mediagallery ' via the plugin Types fields. I simply want to load the post content and switch the posts with a next & prev button in de sidebar. The post ...
0
votes
2answers
149 views

Custom Post Type Permalinks with %category%

I Create New Post Types and Taxonomies. This is the script: add_action('init', 'my_custom_post_type_init'); function my_custom_post_type_init() { $labels = array( 'name' => _x('Roundabouts', ...
0
votes
0answers
19 views

Maintain custom post types and taxonomies in all themes [duplicate]

When I change the theme in dashboard, activated plugins that use custom post types, stay in the menu. But my own custom post types that I created myself disappear. Logically, It is because I create ...
0
votes
1answer
16 views

Show custom post along with default post

I've created a custom post type named "image". Now my theme shows posts on homepage in three parameters- Fresh, Featured, Random(i'm feeling lucky). How can i add custom posts in there. here is the ...
0
votes
1answer
109 views

How to make an admin create/edit post page to look like taxonomy page?

This idea just came to me, where I thought it would be great to have something like this for CPTs that doesn't need much content/fields to fill out. Basically a Post page where your able to add a ...
0
votes
1answer
46 views

Looping taxonomy in taxonomy?

So I have a CPT of references (like a dictionary kind of format for music). In it there are two taxonomies: medium_reference and reference_letter. The reference_letter lists letters A-Z, while ...
0
votes
1answer
167 views

Template with Custom Post Type (Custom Tables) does not work

I'm using a Custom Post Type (CPT) my-project stored in a custom table MY_PROJECT. Here is the CPT registering code: $labels = array( 'name' => __( 'Projects ' ), ...
0
votes
1answer
138 views

Custom Post Types (Changing post style based on category)

thanks for your attention. I have a custom post type I've built called "Portfolio Items". These posts layout a nice 6 column grid and are contained within 4 different categories. I've created 4 ...
0
votes
1answer
418 views

post in a lightbox?

Ive installed "lightbox plus colorbox" plugin and im trying to call the latest post from the CPT notices. the notices have post expiration so essentially im looking to display the latest alert on the ...
0
votes
0answers
345 views

Archive Page Pagination not working

I am using the following template for a custom post type. The pagination does not work as you can see at http://www.xava.ie/testimonials Any hints as to why it is not working for me? <?php ...