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

learn more… | top users | synonyms (1)

0
votes
0answers
25 views

Clone a Post Title and Custom Field to a CPT

I am using Simple Urls Plugin to setup redirects on my blog. I am trying to create redirects automatically upon publishing a post. For example, If i publish a post about StudioPress it will be ...
0
votes
1answer
13 views

get related sub-cat posts on custom post type

I have a custom post type [schools] and a custom tax [location]. Each school is in one location category. I want to display schools nearby in the sidebar. So far I've worked out how to display 5 ...
0
votes
1answer
30 views

Creating Custom Post Types? [closed]

I'm, looking to create a custom post type of events with custom fields of start time, start date, and possibly more fields in the future. I want to create a custom post type without a plugin. Where ...
0
votes
1answer
47 views

Meta box not saving

I am following Noel Tock's tutorial on making an Events CPT and so far I was able to show the custom columns and the custom meta box. The problem now is that I cannot save the data inside the meta ...
0
votes
0answers
21 views

Can not be able to insert the custom post taxonomy

here is my code in which i can't get insert the term in custom post type taxonomy .as in the the code in wp_insert_term($term,$taxonomy,$args); cannot work , while it is working if i put a string ...
0
votes
0answers
8 views

When add new custom post then automatically create category same postname [on hold]

i'm using cpt ui plugin .i'm create a Post Types and Taxonomies registered by Custom Post Type UI. in this register post add new then automatically added to category not create manually create ...
0
votes
0answers
27 views

Custom Post Type Re Write not working

I am trying to get my custom post type single.php URL to have the category in it. I am using the default wordpress categories (I didn't register a custom tax.). My current URL (from the base) looks ...
0
votes
1answer
24 views

Best approach to allow front-end display of posts’ reviewers?

My first question here; please forgive any protocol lapses. I manage an academic journal that publishes on Wordpress. We use Co-Authors Plus to allow collaborative articles. Each article also has two ...
0
votes
1answer
8 views

Compare meta_values and return results that are similar

I have a Custom Post Type for Properties and on the Single Property Page there is a sidebar that I want to show similar Properties in. I have managed to show Properties with the same terms but I ...
0
votes
1answer
41 views

Sorting custom post type columns with external data and without meta values

I created a custom post type 'Book', for which data is stored in an external database (like ISBN, author etc). The WordPress database contains the ISBN per custom post, which connects the correct data ...
0
votes
0answers
28 views

Custom Permalink Structure: /%custom-taxonomy%/%post-name%/

I would walk to the moon and back to get to the following answer. I've searched the internet for hours but couldn't find how to fix the following. I've created a custom post type and a custom ...
0
votes
1answer
19 views

Query pulling all taxonomies, not one I am specifying

I am trying to grab one random post from a custom Post Type I have that has a taxonomy that I give to it. For some reason it is pulling any post, no matter the category. Here is my Post Type if ...
0
votes
1answer
25 views

Show first posts with custom field not empty and order all by title

I have a custom post type called "products". My goal is to make my custom query that I have on homepage and also the search query show first the posts that have a custom field called "id_number" not ...
0
votes
1answer
33 views

Building a Treatments Page, What Do I Use?

I am currently building a site for a local day spa and I have hit a dead end in regards to the treatments page. I just don't know what I'm doing, I have been stuck on this problem for a couple of ...
0
votes
0answers
19 views

Duplicate Custom Posts

I am having trouble with a site duplicating posts. It will duplicate "page 2" on "page 3" and it will duplicate one other specific post. It also isn't showing all the posts, but I think this has to do ...
0
votes
0answers
38 views

Query breaking with 'posts_per_page' => -1

I'm trying to return all posts for a category associated with a custom post type. I have the following query: $cat_name = single_cat_title('', FALSE); $termObj = get_term_by('name', $cat_name, ...
0
votes
0answers
15 views

Tax Query not generating correct query [duplicate]

I have the following query setup to pull videos from a custom post type by category: $cat_name = single_cat_title('', FALSE); $videos = new WP_Query(array( 'post_type' => 'video', ...
0
votes
0answers
15 views

Rewrite Rules in Custom taxanomy and custom post type

Problem in hand : I have custom categories in wordpress named "Product Categories" with custom post type "Products". i want to change urls from ...
0
votes
1answer
17 views

User schedule a post?

Is it possible for a user (not admin) to schedule a post? Let's say they have a form where they can put in some text and use a date picker to select a date for the post to be published, how would that ...
0
votes
2answers
21 views

Custom fields not showing in custom post type

I'm putting together a basic landing page http://shurity.com/, and in trying to clean up my code, I wanted to replace some static content with dynamic content for the user. The element in question ...
0
votes
0answers
24 views

Customizing a category archive page through plugin

I have created a plugin that adds a custom post type called "Activities". This post type's archive shows all the categories, and then the categories each have a page that includes the posts contained ...
0
votes
0answers
21 views

Terms showing empty inside a loop

I have the following problem: I have 2 taxonomies that belongs to a custom post type What i want to do: Loop = taxonomy 1 loop = taxonomy 2 loop = post type My code works but, it shows ...
0
votes
0answers
12 views

Is this the correct way to use Custom Post Types & Taxonomies

I need to create a Members directory and each member serves a selection of area codes. I plan to create a Custom Post Type called Members and a Taxonomy in the style of tags called Area Codes. Does ...
0
votes
1answer
45 views

How to Submit Post Via cURL & PHP

Thanks for reading. I'm trying to submit a post via PHP. I'm filling in a large number of posts from a good amount of data I've scraped so I need this to be automated. I don't have the time (or ...
0
votes
2answers
41 views

How to quickly reorder posts in the admin panel that will persist for the wp-api

I generally use the Intuitive Custom Post Order plugin for any WordPress sites I work with so clients can order their posts visually. For this project, I'm using WordPress as an admin panel and ...
0
votes
0answers
13 views

custom post type remove adminbar edit link

I am trying without success to remove the edit page link on the wp admin bar for a custom post type when a user doesn't have the capability to edit_others_pages. function ...
0
votes
0answers
19 views

Author archive only for custom post type

I want to create an author archive for only custom post type. This page will includes only custom posts by the author. And url structure should be example.com/portfolio/author/author-name/ I don't ...
0
votes
0answers
21 views

Query returning 1 post per page but saying it has 71 pages with almost 1500 results in total

Something is definitely not right here and I honestly cannot understand what it it. After I put this code on one of my custom made plugins, although it makes the search correctly (the result ...
0
votes
1answer
44 views

Custom post WP_Query infinite loop error

I am trying to build wp_query loop with custom post type and it seems I get the infinite loop as the result. Here is my code that I am using: $apartargs = array ( 'post_type' => 'apartmani', ...
0
votes
0answers
21 views

Permalink custom post type and custom taxonomy

I have problems with making permalinks. I have multiple custom post types. Lets say cpt1 cpt2 cpt3 I have one custom taxonomy with few categories. Lets say : cat1 cat2 cat3 All custom post ...
0
votes
1answer
19 views

Meta Box doesn't appear

I have 3 custom post types and 3 meta box files. The problem is I include files in functions.php. I have three meta box PHP files for each custom post type, but it just shows one meta box fields of ...
0
votes
0answers
14 views

Custom post type shows all if no post from user

I'm trying to achieve this (without using any plugins): Adding custom post type Allow subscribers to create, edit, view their own posts "only" in wp-admin I'm using this code: ...
0
votes
1answer
54 views

Custom post type and category link together

I have issue with making new page for this : Category link is : /category/category_name But I want to be : /custom_post_type/category_name Custom post type code $labels = array( ...
0
votes
2answers
47 views

Certain number of posts with certain excerpt length

Could use some help... using this code to call up a custom number of posts from a certain categorey and only want to display the first 15 characters. However, it is showing the same excerpt on each ...
0
votes
0answers
14 views

Strategy for organizing JSON/tabular data the wordpress way?

Situation: Have to import about 20-100 JSON objects into wordpress, which will NOT be displayed at all, but will be processed with other data for view. Example JSON input: { "headers": [ ...
0
votes
0answers
35 views

Make shortcode work in all posts displayed by loop, not just the first one

I have a post archive displaying post and author meta at roadtripsharing.com/road_trip I added a do_shortcode(); in the loop, specifically related to the "New Message" button which opens a dialogue ...
0
votes
0answers
36 views

How Do I Attach Custom Taxonomies to a Custom Post Type?

I'm having trouble attaching custom taxonomies to a post (CPT) submitted via a frontend form. For some reason, whenever a new post is created, new fields in the wp_terms table (containing the IDs of ...
0
votes
1answer
35 views

Custom Post Type: Search Results - Template for no results

My custom-post-type is a Property Listing and on the Homepage there is a Search form. The Search Form works fine if there is a Property or Properties Matching the results. If there are no Properties ...
0
votes
0answers
19 views

Storing a many to many post type relationship in post meta and keeping SQL ability for Joins

I have 2 Custom Post types and i am manually keeping a relation between them in a many to many relationship by keeping an array as a custom field. All PARENT post types have ONE filed in wp_postmeta ...
0
votes
1answer
55 views

Foreach in get_post_types to apply a different filter per post type

I have a class in my plugin with the following function: protected function get_post_types($output='names') { if (! is_array($post_types = get_post_types(array( 'show_ui' => true ), $output))) ...
0
votes
1answer
24 views

Display subcategories in the filter on CPT

I have a little problem with my CPT. I created some categories with subcategories, and I wish display the subcategories in the select filter. Actually, the categories filter display only the first ...
0
votes
2answers
23 views

Style post formats differently only in single

I want to use post types to style video posts differently. This should be quite easily achieved with custom post types. But I only want the video post type to affect the post when it is in "single". ...
0
votes
0answers
13 views

Custom Post Type - after disable 'Add New', I can't edit and delete post

I need to disable 'Add New' button for my CPT, but when I add: 'capabilities' => array( 'create_posts' => false, 'edit_posts' => true, 'edit_post' => true, 'delete_post' ...
0
votes
0answers
15 views

Auto insert custom post type title

Is it possible to change the custom post type title based on another selected field? Basically i'm trying to do this:
0
votes
0answers
28 views

Remove CPT slug in multisite installation

I would like to remove the custom post type slug from the site url. Searched hours for a solution. Didn't find a working one and can't resolve it on my own. It is a domain-based multisite ...
0
votes
1answer
46 views

Custom post type archive page not showing on archive-posttype.php

I am trying to create archives page for my custom post types but it is going to a default archive page not the archive page which i have created for archives Here is my code for custom post type ...
0
votes
1answer
35 views

Custom post type with two templates

I have a custom post type with an archive-my-post-type page and now I need a second archive page without header and footer and with a custom content. So my question how can I create a second page ...
0
votes
0answers
18 views

Custom Post Type - multiple in single menu position

I currently have a couple of 'Custom posts types'. Currently, each of them has a separate item on the menu but I would like to add them all as sub for one position. I have somethink like this: Movies ...
0
votes
2answers
32 views

Remove custom post type generated by a plugin (The Events Calendar) [closed]

On my client's site, I had installed the plugin "The Events Calendar". I noticed after uninstalling, the event archive page still remained and I could not find a way to remove this page. I have ...
0
votes
0answers
26 views

CPT url rewriting : regular posts return 404 error

I have a WP website where a created a CPT named product, which has several custom fields, including a category field. This "category" is a custom taxonomy that can take several values, let's say : ...