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

learn more… | top users | synonyms (1)

0
votes
0answers
125 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
298 views

If tag exists and equals then

I have the following code and I'm trying to check to see if a specific tag exists and if so I need it to be echo'd once. The problem I'm having is when the tag exists multiple places it gets echo'd ...
0
votes
0answers
181 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
67 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
498 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
389 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
124 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
45 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
78 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
31 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
78 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
177 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
22 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
334 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
203 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
77 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
250 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
96 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
237 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
628 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
148 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
289 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
102 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
69 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
65 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
142 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
18 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
105 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
44 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
160 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
134 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
405 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
322 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 ...
0
votes
1answer
44 views

Creating Multiple Admin Widget Page with Calling One Sidebar

Does anyone know how to create multiple admin widget pages with calling specific sidebars? In Detail, I have a custom post type called Groups and I am creating new admin pages in the back end. I ...
0
votes
1answer
222 views

How to add a post counter to the list of custom taxonomy terms?

I am using the below code to display the list (radio buttons) of terms that are currently used by existing custom post type posts: $args = array( 'taxonomy' => 'typ', 'post_type' => ...
0
votes
1answer
545 views

Custom post doesn't show featured image

I'm probably missing something but somehow my custom post type doesn't display the featured image input field when creating the post. I have the featured image already registered in my functions.php ...
0
votes
1answer
126 views

Add an A-Z menu at the top of A-Z listing code

I have the following code that is creating a and A-Z listing of my Posts in a Custom post type. I'd like to somehow create a A-Z menu at the top which links down to its respective anchor. I just can't ...
0
votes
1answer
110 views

Showing custom post type categories in the menu

here is my custom post type and category: //Register nav register_nav_menus( array( 'main_nav' => 'Main navigation' ) ); //Custom post types add_action( 'init', 'create_post_type' ); function ...
0
votes
2answers
111 views

template page to show custom a post types only

Does anyone know how to make this page template to only show knowledgebase post types? I've tried various different ways but with no luck <?php $cat_args = array( 'taxonomy' => ...
0
votes
0answers
100 views

Custom Post Type and Taxonomy pagination permalink

I have a custom post type of galleries with pagination for the posts thumbnails. It worked great until I activated the permalinks in the WP admin panel. I saw many posts on this problem but none of ...
0
votes
0answers
594 views

Creating a menu that lists your custom post types with wp_list_pages()

I'm stumped on this, it is something I've gotten to work on other sites, but I must be overlooking something here. I'm trying to create a secondary menu for my custom post types ('staff') with ...
0
votes
1answer
349 views

Insert data in custom table during new post creation

I want to in insert data in my custom db table when creating a post. Suppose there are three categories (php, wordpress & jquery). When i create a post in wordpress, i want to insert post id and ...