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

learn more… | top users | synonyms (1)

0
votes
1answer
796 views

Displaying Portfolio Filter by Category Order (alphabetically)

I have created a custom post type to display churches in Europe. I used a tutorial to make it filterable and everything on my site works as normal. How would I organize the posts by country, instead ...
3
votes
2answers
613 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
0
votes
1answer
42 views

WP_Query() with custom post type and taxonomy — get all terms?

I have the following custom post type: lesson custom Taxonomy: subject which contains terms like math, reading, etc.) I have configured my page so that the user may filter the results by ...
0
votes
2answers
27 views

Comprehensively Restrict Post Type Taxonomy to Logged-in Users

I've registered an employers post type with several associated taxonomies and want to all associated pages (single, term archives, post type archive page) only viewable by logged-in users. I've ...
1
vote
1answer
742 views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...
4
votes
1answer
98 views

Combining Multiple Taxonomies in one URL

I'm creating a complex site with a product catalog with two custom taxonomies. They are Brands and Types. Brands - Canon - Toshiba - HP Types - Printers - Scanners - Multifunction I need a page ...
3
votes
1answer
28 views

Change page /2 to /transcript with a Rewrite

I set up this rule (in functions.php) function custom_rewrite_basic() { add_rewrite_rule( 'episode/([^/]+)/transcript', ...
0
votes
1answer
23 views

How to run filter only on custom post type edit screen

I am trying to force minimum width and height requirements on featured image upload on a particular post type only. My minimum width/height code is ok, as it works just fine on all post types. I am ...
11
votes
6answers
4k views

Can the Next/Prev Post links be ordered by menu order or by a meta key?

I have a series of posts that are ordered by a meta_key value. They could also be arranged by menu order, if necessary. The next/prev post links (generated by next_post_link, previous_post_link, or ...
0
votes
1answer
18 views

How to make post page unique and show it on home page?

I don't know if the title is correct but I'll try to explain my question below. I have created a custom post type "Projects" and the trick is that one project have to be unique and displayed on ...
0
votes
1answer
24 views

Trying to modify custom search function in plugin to search postmeta table for keyword as well as posts table

I am trying to modify a plugin that searches the posts table and have it also search the meta_value in the postmeta table. original code is: if (!($index_page = $wpdb->get_row("SELECT ID AS id, ...
0
votes
1answer
39 views

Changing custom post_type when publishing

I would like to change the post_type from "prototyp" to "gutschein" when publishing a "prototyp" (clicking publish button of a "prototyp"). Is there a way to make this automatically by a function? ...
0
votes
1answer
25 views

Custom Post Type Audio Content

I want to make a custom post type of songs. Is there any way that i can provide an upload button to the admin to upload song as a post. So that it can be accessed via the_content(). I don't want to ...
1
vote
0answers
19 views

How to import files to individual posts of a custom type

I'm very inexperienced in WP, so I may have some fundamental misunderstandings - definitely open to alternative approaches if this one is crazy! I have a collection of several hundred files, split ...
0
votes
0answers
37 views

woocommerce: add custom field and visual composer

how do I add a custom field area to the single products dashboard and add visual composer support to it? Thanks.
0
votes
1answer
28 views

How should I structure complex content hierarchies?

I am pretty new to WP and I have not had to deal with any overly complex content structures as of yet. Until now. I'm trying to figure out the right mix of Custom Post Types, Taxonomies, Pages, etc. ...
0
votes
1answer
6 views

current_menu_parent for custom post type and custom url

I have defined a custom URL that loads a custom template, as a customized "archive" por a custom post type. I can't use the native archive since the page has a couple requisites that the archive ...
2
votes
1answer
1k views

Adding Sticky functionality to Custom Post Type Archives

In WordPress, Custom Post Types do not have Sticky functionality as a core feature. It is possible, I'm sure, to create it in certain cases—and I'm working on a project that requires it for ...
1
vote
2answers
598 views

How to set a custom post type to not show up on the front end

I use a custom post type in one of my sites for image slideshows. I have publicly queryable set to false/off but when Google crawls my site I see 404 errors for the URLs for my slideshows. I thought ...
1
vote
1answer
1k views

How I upload, save and set a featured image from my frontend?

I have a form in my site. This the user register one missing person. I created a custom post type missing person, custom taxonomies and custom fields. All this input's save as well in wp. But I ...
0
votes
0answers
32 views

Fetching private posts or custom post types via WP-API with basic authentication

I've installed WP-API along with Basic Auth. I'm able to fetch cpt posts using curl http://siteurl.com/posts?type={post-type} However, if I change a post to private, it is no longer returned. This ...
0
votes
3answers
841 views

If Post Meta Equals Current Title Conditional Advanced Custom Fields

I would like to create a custom query loop to display data depending on the current post title. Pseudo-code: if post title = custom filed Show related content I have a page called artists ...
0
votes
3answers
931 views

wp_insert_post() or similar for custom post type

Need to insert custom post type objects from code. Haven't been able to add using the default method $id = wp_insert_post(array('post_title'=>'random', 'post_type'=>'custom_post')); creates a ...
2
votes
3answers
6k views

WP insert post and custom taxonomy

I have create a custom post type in my WordPress attached with a custom taxonomy. The post collect date from the from end of the web site by using wp_insert_post(). This is my Custom post ...
0
votes
1answer
368 views

Create action running on trashed_post hook to modify post_meta value

I have a custom post type that always do math operation to its post_meta and other custom post type post_meta. For example: post-type 1 = cpt_product_order post-type 1 post_meta = ...
0
votes
1answer
552 views

wp_trash_post action hook with custom post type

When a 'contact' cpt post is trashed, i need a metakey from another cpt 'act' to be deleted, i have been searching all over which hook i should use but unfortunatly the codex action reference page is ...
0
votes
0answers
20 views

Custom Taxonomy in WP_Query not returning any results

This is how I'm doing myWP_Query, it gets the query_var because I'm using it with my custom post_types as well. The thing is it's not filtering anything! It gets all results for that post_type and ...
0
votes
1answer
3k views

Custom search for custom post type, custom meta and search fields

Id like to build a search form for a specific custom post type (vehicle) and have filters for that custom posts type's custom meta fields (price, age) and custom taxonomies (make). This will totally ...
0
votes
2answers
48 views

Change upload_dir folder at a certain cpt but cant change back

im try something with the upload_dir filter I check the current CPT with this function function get_current_post_type() { global $post, $typenow, $current_screen; //we have a post so ...
0
votes
0answers
25 views

Completely remove “posts” from Wordpress

I am using a plugin which handles a custom post type for me, and therefore I have no use for the original "Posts" post-type. I want to remove this from the menu and remove it's functionality so that ...
0
votes
2answers
542 views

Multiple tag cloud filtering

I am writing a plugin which creates a custom post type and two associated custom taxonomies. The custom post type list/archive page should be filterable by terms in one or both taxonomies i.e not just ...
0
votes
2answers
42 views

Custom post type taxonomy not sorting correctly

i created a custom post type and also some taxonomy to be able to perform sorting on the display list. It is all working well on my local testing installation but as soon as i put on the production ...
0
votes
1answer
1k views

Add Standard Page Attributes Metabox for Page Parent

I have a custom post type 'product' supplied to me by a Wordpress eCommerce plugin that does not offer the option to change the Page Parent in the Page Attributes Metabox. I'd like to remedy that. I ...
0
votes
1answer
551 views

Taxonomy rewrite pagination 404

I have rewritten my taxonomy url to the name of my posts type 'filter'. Because I have done this, my pagination does not work anymore on the url: http://www.website.com/filter/term-name/ So if I ...
1
vote
1answer
432 views

Pagination on Custom Post Type: 404 Error

I've been getting a 404 error on a CPT archive page, and am not sure why. I can go to the page set for the custom post type archive, but the next page /mycustomposttype/page/2 gets a 404 error. I ...
0
votes
0answers
27 views

My custom post type displays the same page (the latest post)

I've been trying to develop my website, everything was going well until I noticed that my custom post type is not acting right. Let's say, I have three posts in my custom post type, they all appear ...
0
votes
1answer
28 views

Displaying a div from an assigned meta_value when on a page

On my website I created a custom metabox that is being displayed in the post type "page". The metabox will display a checkbox and 4 url fields. The checkbox will control the visibility of a div ...
0
votes
1answer
331 views

Search Custom Post Type & Taxonomies

The site I'm building has a directory element, which has a lot of different business listings; this is a custom post type. It has a Custom Taxonomy called Trades under which are different types of ...
0
votes
1answer
36 views

Changing sort order with pre_get_posts using is_post_type_archive doesn't change category pages

I'm trying to change the sort order of staff members using post meta. This works just fine on the main staff archive page but I can't get it working on staff category archives. I've tried this: ...
0
votes
2answers
36 views

wp_query check if integer exists in custom field's array

I'm using a wp_query to find custom posts that have a specified numeric value inside of a custom field. That custom field's value is an array of numbers (IDs of selected posts using Advanced Custom ...
0
votes
2answers
3k views

Post type archive page not working

I registered a custom post type using Custom Post Type UI, and created an archive page and named it archive-recipe.php, 'recipe' is my custom post type name. But its not working, instead its using the ...
1
vote
1answer
847 views

Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?

I have a custom post type with a custom taxonomy (to show some "best practice" examples on my website). On the single-post-page (single-bestpractice.php) I wanted to show all the terms (categories) ...
0
votes
1answer
301 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
595 views

Make custom post type column sortable

My site has two custom types: Auction and Lot. Lots are connected to an Auction via the post_parent field. I added an Auction column to the Lots list in the admin area. function ...
4
votes
1answer
746 views

WP_Query ignores post_type in category view

I have following query to select posts by my custom post-type. This works fine while being on the frontpage (the snippet is included in the sidebar). As soon it gets executed on a category page the ...
0
votes
1answer
306 views

Show Posts in Vertical Tabs with Scrollbar

I have created CPT ( Custom Post Type ) called Recipes. I want to display all me recipe in Vertical Tabs. For Example; check the image below i have created. Image Example Click Here On the left ...
-1
votes
0answers
29 views

Permalinks not working in nginx webserver

I am unabelt to set the permalinks on the nginx webserver. (Wordpress 4.0) right now i am not using any setting in the nginx.conf file. i am also using the permanlinks for the custom post types. we ...
0
votes
2answers
354 views

Linking together two different custom post types

I hope someone can help out with this as it is very frustrating... I am trying to build a property site in Wordpress and would like to link two custom post types together - One would be development ...
0
votes
1answer
318 views

rewrite rules hierarchical

I want that my WordPress follow this rules: /productes/ a page with all products /productes/[category]/ a taxonomy-page with all products of the category /productes/[category]/[subcategory]/ a ...
0
votes
1answer
362 views

Set post to draft after set period based on post_modified date

I have a custom post type for the user profile page. My client wants all users to update their profile at least once a month, so we want their profile (custom post) to be automatically set to draft ...