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

learn more… | top users | synonyms (1)

0
votes
0answers
22 views

Custom post type is not saving, getting -1 on page

After saving a custom post type, the page only shows "-1" instead of the post saved message. This is happening on several calendar plugins.
0
votes
0answers
63 views

Custom WP TItle from custom template with dynamic URL structure

I am new to custom WP development, but I have made a custom plugin. With a custom rewrite I have made the following URL structure: /profile/[company_name]/ I have made a new post Profile with a ...
0
votes
1answer
15 views

Advice on Categorization for a Custom Post Type

Here is the scenario... Say I currently have 4 different car brands and 4 different locations. Ford, Chevy, Honda and Toyota Location 1, Location 2, Location 3 and Location 4 Each car brand will ...
0
votes
0answers
32 views

Create product configurator

I am building a product configurator tool where users can select mutually exclusive/inclusive options and I want to store their configuration at the end for retrieval later. As the user selects option ...
0
votes
0answers
20 views

WP_QUERY with alternating post types and pagination [duplicate]

I want to show both regular posts and a custom post type (event) on the homepage in a single loop. The event post type needs to be ordered by a custom field for the event date and show future events. ...
0
votes
1answer
81 views

Single custom post type page redirecting to 404 page

I have declared post type as below: $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, ...
0
votes
0answers
14 views

why is the value of one field different from another if they are filled with the same variable?

A form is submitted containing a users email address. When the form is submitted, the page that processes the form creates a new post, and it sets the value of the custom meta field called 'entryCode' ...
0
votes
0answers
27 views

How to add a “tabbed” options page in Custom Post Type

does anybody has an idea of how to setup a "tabbed" options page in a custom post type. The options page is already there, done with the simple "add_submenu_page". But as it's getting too many ...
0
votes
1answer
20 views

How to set class to “current-page” on the currently viewed single post within a CPT

I have a custom post type, "case". I'm currently editing the single-case.php file and in my sidebar I have the following piece of code: <?php $case_query = array ( 'post_type' => 'case', ...
0
votes
0answers
62 views

Post type permalink as subdomain rewrite rule

I'm trying to use custom post type slug on permalink before site URL (as sub domain) so the permalink most look like: http://post-type-slug.example.com I use a modified class from Subdomains plugin ...
0
votes
0answers
30 views

Custom Post Type search with category dropdowns

I have a custom post type called MEPs and I have a search function which sort of works but sort of doesn't. The search function needs to call 2 drop downs. One being the top level categories, the ...
0
votes
0answers
16 views

Custom Post only works with post_type=custom-name

I setup a custom post type but for some reason, when I try and publish a page under it, the home page loads - which tells me it's not finding it. Below i my init function: function campaign_init() { ...
0
votes
0answers
26 views

Loop through custom post type taxonomies

I have created custom post type products and I want to show categories on products archive. I have this code <div class="container"> <div class="boxes"> <?php $cat_args = array( ...
0
votes
0answers
25 views

Filter WordPress custom post type with taxonomy

I'm new to word press I have create one custom post called product and have three taxonomy in it. 1.product type 2.location 3.category now i want to search product with all taxonomy selected by ...
0
votes
1answer
27 views

Change Slug in URL of Posts of custom post type

I have custom post type registered with 'has_archive' => 'gallery'. It works fine when visiting mysite.com/gallery/ it opens archive-vmgallery.php and it works fine. However, I would like that vm ...
0
votes
1answer
36 views

Custom post type based on existing one

Im using a theme that comes with a portfolio post type and portfolio categories taxonomy. My problem is that I want my site to have 3 portfolio sections, each with its own category list. Can I ...
0
votes
0answers
19 views

How to avoid duplicate post entry admin page

I am building a cinema website with different custom post types. How do I avoid duplicate post entries? For example, I have a post type: Trailer First I add a trailer Terminator. After if I add ...
0
votes
1answer
33 views

Post search not looking at post title since 4.4.2 upgrade

looks like searching for posts on my custom post type isn't checking in the title of the job anymore. Worked fine before the update but now only searches the post content. Any ideas? This is the ...
0
votes
2answers
120 views

How to get category image custom post type taxonomy in wordpress?

I have a custom post estate_property and its has taxonomies property_category ,propert_action.I have installed WPCustom Category Image to upload image for each category of taxonomies. How to display ...
0
votes
0answers
14 views

Smart Search exclusive to Custom Posty Type

I am in the brainstorming stages of a project and wondering what is the best way to achieve the following. I will have a Custom Post Type of "Projects" which will contain multiple categories and some ...
0
votes
2answers
30 views

rewriterule not working

I have post type example with 2 records: exam1 and exam2. This post type was created by plugin Types Toolset (www.wp-types.com). So link to exam1 looks like my_site/example/exam1. Also I have 1 ...
0
votes
0answers
27 views

How to remove CPT comment feed from head?

In a custom post type I have set has_archive to false. In the head of a CPT page however I still find a link to a feed like this: <link … title="Page Title | Comments Feed" ...
0
votes
0answers
18 views

Post Types List in plugin options page

I'm building a gellery plugin. I've created a options page for it. I want to list post types in a select box. Codes; $args = array( 'public' => true, '_builtin' => false ); $output = ...
0
votes
0answers
35 views

After I changed the slug of a custom post type, the single page returns 404

I created a custom post type using types plugin the post type has ad as slug, but now need to change it to card, and I edited the slug field in the types panel. the thing is that new urls return ...
0
votes
0answers
29 views

Displaying Custom Taxonomies that match other posts taxonomy

Here is my setup....I have a custom post type that has 2 custom taxonomies (About Me & Likes). In my page templates I want to show related posts that have tags in the "About Me" section that match ...
0
votes
0answers
9 views

Custom Event's Plugin pages

I'm trying my hand at creating an events plugin from scratch for a client with fairly specific needs. I've gotten so far as setting up the CPT, creating and saving the metaboxes that I need with some ...
0
votes
0answers
40 views

Embed handler in custom field

I am trying to implement wordpress function wp_embed_register_handler() into a custom field. Using this instead of wp_oembed_add_provider(), for the urls I use do not offer oembed support. With help, ...
0
votes
0answers
27 views

Single-{custom}.php doesn't exist not matter what I do

This question has been asked and re-asked, I know because I've found every one of them here already. I don't know why I can't find the hint that I've messed differently than others so after hours of ...
0
votes
0answers
27 views

Custom post type single page - always show latest post

I have created custom post type 'products' and template: 'single-products.php' In this template file I have a code: <?php the_post();?> <h1><?php the_title();?></h1> <div ...
0
votes
0answers
34 views

Create slug for Custom Post Type Under two Parent Page with WPML

I would like this structure, WPML plugin with subdirectories, event default one. Desire structure: /en/2016-xxxx-xxx/ -> Page with Custom Template /en/2016-xxxx-xxx/term1/ -> Page with Custom ...
0
votes
1answer
25 views

custom post type does not working when adding in child theme function

I'm trying to register post type through child theme function.php but it does not working. However its working fine when i adding in the parent functions.php. add_action( 'init', 'testimonial' ); if ...
0
votes
1answer
21 views

retrieve custom post image through widget

My custom post has featured image. I need to retrieve it through widget. I am using get_the_post_thumbnail. But it is not working. Except this the rest of the widget is working fine. Here is the ...
0
votes
1answer
54 views

Pods pagination erases my sub menu

I've build a taxonomy that holds the categories of a custom post type. This is going to be used to create a sub-menu called categories that is a filter to generate all the custom post types that have ...
0
votes
0answers
30 views

How to get the custom post type in 'after_setup_theme' hook

I am trying to detect custom post types in 'after_setup_theme' hook. Right now I am using $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] for getting the URL of the current page. Then I want to ...
0
votes
3answers
35 views

Custom fields vs. Custom post types for a Portfolio Website

The Problem : I need to make a website of my Portfolio using Advanced Custom Fields and Custom Post Types UI plugins. Approach 1: Make a seperate post type for each Portfolio type (photgraphy ...
0
votes
0answers
16 views

Widget form is not saving value that retrieved based on taxonomy terms

Custom Post Type: employee Taxonomy: department Here is the code:for widget form function form( $instance ) { // Output admin widget options form if ( post_type_exists( 'employee' ) ...
0
votes
0answers
33 views

Can I override the permalink/slug on creation

I have a plugin that imports data from an external API, creates a 'Product' Custom Post type ( or updates an existing one ) and then adds all the meta data. Every time we update the product from the ...
0
votes
2answers
19 views

Help Saving Custom Post Type Meta Box

I have the following code used to create a Custom Post Type. All works the save function is being triggered, and it seems to be saving. But I cannot get the saved data to output in the text field on ...
0
votes
2answers
40 views

single-{post-type}.php

I have implemented a custom post-type "project". To see the page of the archives of these custom post types, I created an archive-projet.php To see this page, I type ...
0
votes
0answers
29 views

Complex sorting of custom-post-types

Custom post: people, custom taxonomy: department, each department has (optionally) a custom field (boolean): team leader Desired output; Heading: Department A Team Leader Department A People in ...
0
votes
0answers
41 views

WP_Query with meta_query returns where zero expected

I'm using a WP_Query with a meta_query key to get results from a custom post type using the following code: $args = array( 'post_type' => 'werknemers', 'meta_query' => array( ...
0
votes
1answer
31 views

Rewrite Endpoint Url without ? before endpoint

Created Custom Post type called members, don't need a members permalink, but need to link to member patents, if exists for member (which I got figured out). The problem I'm facing is the creation of ...
0
votes
0answers
31 views

TinyMCE custom button on post-new.php screen

Iam building a small slideshow plugin. For this I registered a new post-type which is called "prfx_slide". And also set-up a shortcode function so that I can use the slider as a shortcode. With the ...
0
votes
1answer
31 views

manage posts custom column is not populating data from meta boxes

My custom post name is "employee". Here is the code for creating and populating admin columns. Columns have been created but it is not populating. Also, what is the meaning of the "10, 2" in action ...
0
votes
1answer
34 views

wp_dropdown_pages doesn't allow me to select more than one custom post type

I am creating a "wine database",k to call it somehow.... Basically there is a custom post type called "wines", and then it has attributes as vintage, grape color..... and also, "region" and ...
0
votes
0answers
29 views

Custom Permalink for custom post type

I need a permalink of the type domain/something/%post_type%/%post_name.I have a come up with the following code.Here reviews is the custom post type.But it is resulting in a 404. ...
0
votes
0answers
13 views

Get categories from custom posts

I installed the author category plugin and I'm having difficulty getting it to work with custom posts. It appears that the author has abandoned the plugin and I can't get support through WP. Here's ...
0
votes
2answers
36 views

Hide a CPT from specific pages

Goodevening, i create a CPT (newsletter) and i want to hide from specific pages. I try to do that with many ways, but the newsletter not hide. Edit: I want to hide in page subscribe {slug} and 6677 ...
0
votes
0answers
46 views

List of CPT posts listed under associated custom taxonomy terms only displays 10 posts per term - how to change/remove limit?

I have some code which displays a list of posts based associated terms like this: Term 1 Post 1 Post 2 Post 3 Term 2 Post 4 Post 5 Post 6 And so on. And it does the job to an extent. A few of ...
0
votes
0answers
24 views

Override “Parent” input for custom taxonomy

I have a custom category taxonomy. I am going to have a massive amount of categories, by 90% of them will be child categories. Currently the "Parent" input will display every parent and child ...