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

learn more… | top users | synonyms (1)

0
votes
0answers
2 views

next_post_link not working with custom post type and taxonomy

When using next_post_link('Continue reading: %link','%title',false); I am able to get a link on the page with the page name. I want to limit the next page link to only display links to pages in the ...
0
votes
1answer
6 views

Use post in multiple places on a page with multiple posts

I have three custom post types: workouts, news_items, and business_items. I'm trying to display the top (most recent) item from each on the home page and I'm trying to put the featured picture from ...
1
vote
2answers
15 views

Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname

I have a custom post type "news_updates" which I have not given custom tags or categories. I have however created a normal tag (not attached to a custom post type), and assigned it to a particular ...
0
votes
1answer
16 views

get_page_by_title() doesn't retrieve my post

I have a CPT called "patchwork" and I created a post of this type entitled "Patchwork 01". The following code should retrieve this post, but it doesn't. $patchwork = get_page_by_title( 'Patchwork ...
0
votes
1answer
9 views

Multiple archives to display parent and subcategories content

I am developing a plugin with custom types and my problem is that I need to display an archive of a selected subcategory (selected from a parent category) and in the page display some events of that ...
0
votes
1answer
15 views

Custom Post Type as Page parent

So there are a million snippets for how to get pages as parents of custom post types. However, the reverse seems to be questionable. One would think, since everything in WordPress is technically a ...
0
votes
2answers
56 views

Posts in Multiple Columns and Rows with one single loop

I'm pretty new to creating my own theme and I seem to have become stuck and would really appreciate it if someone could help me. I have searched and found snippets of advice but nothing that really ...
0
votes
1answer
8 views

Top level menu position overwrites another entry

From looking at the codex and after using print_r($GLOBALS['menu']; to display the array list of menu items, I see my CPTs listed as 16,17,18,19 in the returned array. 20 is the Pages menu item, ...
0
votes
0answers
19 views

How to add gallery support to a custom post type?

I've created a custom post type. add_action( 'init', 'my_custom_post_type' ); function my_custom_post_type() { register_post_type( 'my_custom_post_type', array( 'labels' => array( ...
0
votes
0answers
16 views

How to display data with pagaination on backend?

I am new with WordPress development so I have no idea how to do this functionality with WordPress. I got one task to display some data from database and have to display records with pagination(Just ...
0
votes
0answers
18 views

Site loads very slow for archive custom post type page

I created a directory website which has a page that displays all the listings (1,005) This page takes VERY long to load. Is there any way to speed this up? Its using a custom post type listing. There ...
1
vote
0answers
22 views

comment_form() not showing on custom post type

I'm using Gravity Forms to create entries from forms, and Gravity View to display these entries on the Front-End. By default, Gravity Forms and Gravity View doesn't have a comment system for the ...
0
votes
0answers
9 views

Converting a checkbox filter for custom fields to a dropdown

I've been scratching my head trying to figure this out for awhile now and was wondering if someone could provide some help. My PHP knowledge isn't the best so I'm working with what I have and it ...
1
vote
1answer
24 views

Custom Post Type with Templates using Meta Boxes?

I have this issue where I need a CPT to have several layout options and use templates. Originally, WP does not support templates for custom posts, however I know its possible to do it manually via ...
0
votes
3answers
41 views

Page not found taxonomy custom post type

I made a custom post type with taxonomies and when I go to the taxonomy page and view one of the taxonomies I get a page not found error like the taxonomy wasnt made. Any suggestions? /*Products*/ ...
0
votes
1answer
12 views

List all Custom Post Type posts excluding certain Taxnomy term

I'm writing a theme in which I've registered "Services" as Custom Post Type that supports "Type of Service" Custom Taxonomy. I want to list all the posts of type "Services" except those which have ...
-2
votes
1answer
23 views

Canot save post if any meta box was empty

I need to dont save new post from custom post type if any meta box empty. So we must check the meta if empty, we mus show me " You must fill all meta box value before save post" else if all meta ...
1
vote
2answers
41 views

How can I show a custom post type for users in the authors.php file?

Here is the code I have. It is showing 100 custom post known as campaigns. I need it to only show the current users. So author/joe should only show joe's campaigns. <?php ...
0
votes
0answers
16 views

Custom meta Title for custom post type archive from page

I've set up some custom post types, and created custom archives, eg in the following format: archive-books.php (With a template name of "Books Template"). I then have a page (/books/) created in ...
0
votes
1answer
20 views

Adding HTML tags or css classes to admin columns

Is it possible to add a custom class to the links in admin columns? I'm trying to replicate the labels below. I'm using WP 4.1 and my CPT is using 'show_admin_column' => true in ...
0
votes
0answers
13 views

Meta box Custom Validation Not working [closed]

In the latest version of Meta Box plugin there is a new 'validation' meta-box argument that allows specifying validation rules and messages using jquery.validate syntax. I tried this for my project. ...
0
votes
1answer
8 views

Plain <a> links in single-class.php and archive-class.php not working

This seems like it should be super-easy to resolve, but it has me stumped. All the links on my page added via get_header() and get_footer() work just fine. The links added via single-class.php and ...
0
votes
1answer
31 views

Changing custom post type URL issue

I have this function and it does just what I need, it replace words in URL perfectly, but links don't work. All links are good and display on site well structured, as I wanted, but just don't open ...
0
votes
1answer
16 views

How can i call a custom method on submission of a custom plugin post type?

I have registered a custom post type .On submission of that page/ post can i call a custom method . How ? Can i add a method in plugin file and will it call on post type submission by ACF or any ...
0
votes
0answers
10 views

custom post types not appearing in Search multiple post types

I have a Search page where users can select to search for multiple post types: posts, pages, docs, newsletter. What is driving me nuts is that: a) Users can select posts/pages OR docs OR ...
0
votes
1answer
18 views

Set the Title of a Custom Post Type by code as Author's Username

For a Custom Post Type I want to have the Title to always be the Authors Username. So far I've: Limited each Author to only posting this type once so as to avoid conflicts. Added code to the theme ...
0
votes
0answers
19 views

Custom meta-box for all custom post types

I want to create a custom meta-box for all custom post types: post, page, and every custom post type (portfolio, testimonials, FAQs, quotes, reviews...). But without writing them into the array: ...
0
votes
1answer
16 views

Conditionally custom post type url rewrite

I am going to try and sum up what I am trying to achieve. I have custom post type named "item" and there are also registered taxonomy named "item_category". I need now to rewrite url, to remove "item" ...
0
votes
1answer
17 views

Custom Taxonomy Query by Taxonomny not working

Not sure what's going on - here's a look at my code: $args = array( 'orderby' => 'title', 'show_posts' => '-1', 'posts_per_page' => '-1', 'cat' => $goalsCat->cat_ID, ...
0
votes
2answers
33 views

Wordpress: insert a custom post type instance as an option for a custom taxonomy

I'm trying to connect a custom post type to a taxonomy defined in an other custom post type. I'll show you an example. I have a custom post type COURSE, i use this post type to create a class for a ...
2
votes
2answers
107 views

Syntax to get the Nth item in a list of custom post types?

We have a custom post type testimonial and want to show the 1st, 2nd and 3rd in various bespoke locations on the page. Here's how we would do it if we just wanted to loop over testimonials and show ...
0
votes
0answers
3 views

Custom posts to exist in only one site in a multisite

Is this possible to do? I imagine this would also exclude said CPT labels from the main CMS dashboard menu too?
0
votes
1answer
24 views

Edit post meta direct from post.php?

Does anyone know of an easy way to be able to edit ALL of a single post's meta at once ie on the post.php &action=edit page? As some of the meta has been put in there with the update_post_meta() ...
0
votes
0answers
8 views

Selecting distinct days from a custom field within a range

I have an events custom post type that stores a date as a custom field named datestart. I need to select the distinct dates in this field, where they fall in a given month, and return those distinct ...
1
vote
1answer
24 views

How to List All Custom Post Types Names (Not Posts)

Having Some Custom Post Types Like "Projects", "Products" and "Events" I need to list them in a page. Please be advis that I do not want to list any POST here! instead I just want query the name of ...
0
votes
2answers
27 views

Copy post from category to custum post type

I have 1458 post in category name news that id is 5. And i wont to copy all of this post and transfer it to custom post type name news. How can do that ??
0
votes
0answers
19 views

Query for related posts by tags with custom field and custom post type

I've found a lot of very similar questions here, and have tried to use the (accepted) solutions without success, guessing I'm doing something very simple wrong and just can't see it so I'm hoping a ...
0
votes
1answer
13 views

How can I get 3 different taxonomy type terms in a div class element?

I have this situation where I need to filter specific post type posts by its taxonomies (there 3 different ones) and since I am using Isotope, I need them in my class element. I already made it work ...
0
votes
1answer
22 views

Enqueueing TinyMCE

I have decided to pull duplicated javascript from multiple custom post type files into one 'admin.min.js' file for use in all admin pages. So far I have got the script to load. This is in my ...
0
votes
0answers
15 views

Create a custom profile field that will have a selectable list of a particular CPT by the same author

My situation is this - I have 4 CPTs - Projects, Drafts, Collab request, and Query. Now, each of the 3 latter CPTs will always have a project CPT associated with it. For example, Drafts will always ...
0
votes
2answers
54 views

Can't get post id on page that is a custom post type archive

I have a custom post type archive archive-projects.php that I am using as a page template because I have some custom fields that I want to display. I am trying to get the post id of this page but ...
0
votes
1answer
45 views

Adding contact form in custom post type

7 I create a custom post type called "Artist". And i have a different artist [post] profile? And now i want to add a contact form on every post. So, User can contact with particular Artist. So, ...
0
votes
2answers
21 views

Custom Posts on Different Pages

So first off let me start off saying I'm new to WordPress development. I know HTML/CSS/JS like the back of my hand, but PHP and it's functions are new. Anyway. My problem may be simple, so here goes: ...
0
votes
0answers
20 views

Fetch posts list from fist CPT taxonomy term and list under 2. CPT

I have two custom post types registered. Custom Post Type: PUBLIKATIONEN with the two custom taxonomies LISTEN and AUTOREN Custom Post Type: AUTOREN Both have archives. With: <?php echo ...
0
votes
2answers
38 views

custom post type archive template per custom taxonomy term

I want to list all posts with a corresponding template for a custom taxonomy term of a custom post type. To make it easier to understand: The custom post type is called PUBLICATIONS and has a custom ...
0
votes
1answer
41 views

Front end page submission form does not attach custom post type

This side of WordPress is completely new to me, but is also extremely important. I have created a form that allows me to upload a page, with all the parameters I need, however a custom taxonomy is not ...
0
votes
0answers
21 views

Custom Post 'Post Per Page’ Crashing Page?

Has anyone encountered this before? A normal page template with a custom post type query on it. However, when it gets to a set amount of posts the page crashes, white space below where the query sits ...
0
votes
0answers
16 views

Pagination custom post types outside loop

Because of speed / SEO reasons I'd like to load my custom post types as pagination ([1][2][3][4] etc). I have a page called apps and load all custom posts from apps. I'm using currently this code to ...
0
votes
2answers
23 views

display news with pictures 3 small and one large (loop)

I'm trying to put 4 news with pictures 3 small and one large, have gotten displaying them but the "large" is repeated with the last "small" <?php $b=1; $args = array( ...
0
votes
0answers
19 views

How to set OG Image as featured image for custom post type?

I have a custom post type named "Episode" I want to set the featured image as the og image so facebook can detect the correct image. I only want the og data to only appear on that specific custom post ...