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

learn more… | top users | synonyms (1)

1
vote
2answers
53 views

Display latest x posts from all categories in Custom Post Type/Taxonomy

I am attempting to display the latest x posts from all categories using a custom taxonomy called 'case-studies' in WordPress. I have managed to output all the category names as heading links I have ...
0
votes
1answer
28 views

Loop posts in a table ordered by a custom field value

I'm trying to generate a table for a custom post type events, in which I have a few custom fields, one of these is the date. I want to display the posts in the table and order them by the Date value. ...
0
votes
1answer
40 views

Can't replace the default sidebar with a custom sidebar on Custom Post Type in Genesis

I have an archive template ("archive-reviews.php") for a Custom Post Type I have created. I'd like to replace the default archive sidebar with a different one that I have created using the Genesis ...
-1
votes
1answer
36 views

Get all post from custom post type in custom taxonomy

I am trying to display a custom post type that has custom taxonomy, but I am not having any luck. Nothing is showing up. I appreciate any help. Post type = banner Custom Taxonomy = country The ...
0
votes
1answer
41 views

Two plugins sharing the same custom post type registration

I have two plugins Plugin A and Plugin B registering the same post type exp, aws_employee. Each plugin offers different functionality but the post type type they share is exactly the same. If I ...
0
votes
0answers
26 views

How to edit attachment images title from front-end in a custom post?

i am using a custom post in my wordpress/buddypress blog which can be created and submitted from front end. I also upload images as attachments from front-end using that custom post. When I am making ...
0
votes
1answer
23 views

Add data to post edit page, when post is published

I need to customize the "post edit page", for a custom post_type, but to keep things simple let's say it's on the post_type post for now. When the post status is published, I need to run a PHP script ...
0
votes
0answers
23 views

does it need any special functions to write in function.php?

does it need any special functions to write in function.php of template for single-{post_type}.php? I created a custom theme , but it does not move the single-{post_type.php}, my page is ...
0
votes
2answers
20 views

Expandable WordPress content (text) inside a post

I've created a CPT in my WordPress site. In this CPT I have the content element (which is the default WP content) and want to make it expandable, I mean, while viewing the CPT I want it to only ...
1
vote
1answer
39 views

How to connect two custom post types with nested loops

I have 2 custom post types created: "classes" and "teachers". I have created using Advanced Custom Fields plugin a field for "classes" custom post type, a multiselect that helps me add certain ...
0
votes
1answer
38 views

Multiple custom post types showing up in edit.php

I'm having a bit of trouble (i think) over custom post types in Wordpress. I have created multiple post types and they all work, but there is this one thing which is bothering me. Lets say I have ...
0
votes
1answer
23 views

Custom post type URL - filter by taxonomy

Created CPT = news uses default categories (IT and recruitment) I am struggling to view an archive of the posts based on their category mysite/news/ - shows all posts for that CPT whatever the ...
1
vote
0answers
16 views

CPT Validation to not show “Post updated.”

Now this has been asked several times over on all WP forums, but how you change the success message? First, I know there are 2 choices for managing the error message: setting in the options and using ...
0
votes
0answers
20 views

CPT Rewrite Rules by date

I'm having issues with date categorized posts for my CPT. I have permalinks not on the default. I created a CPT with register_post_type and setup rewrite rule as follows. 'rewrite' => array( ...
0
votes
0answers
11 views

Custom post type archive URL

I have a vanilla install of WP Using Custom post type UI plugin I have added a CPT called 'news'. Created some 'news' items and then looked in: http://mysite.local/news/ Expecting to see an archive ...
0
votes
0answers
17 views

Custom URL Rewriting by Year, Custom post type and Custom taxonomy

I am trying to create a custom rewrite url, but is not so clear for me unfortunately... So my problem is: I have a Media-Resources custom post type and Media Type custom taxonomy. This taxonomy is ...
0
votes
1answer
39 views

Remove custom permalink structure from custom post type without modifying register_post_type() directly

I'm using a custom permalink structure for my posts, /blog/%postname%/. I installed a plugin which registers a custom post type, glossary. I don't want this post type to use the custom permalinks ...
0
votes
1answer
20 views

Best way to create a search for custom post type by custom field values

I have a custom post type called people. I want to have 3 search fields for; first-name, middle-name and last-name I was thinking about creating a page with my own search boxes and use query_posts: ...
0
votes
1answer
43 views

How can deregister scripts for a certain custom post type?

I use the functions.php to register and enqueue all of the scripts and css for my website. I have one custom post type that i want to pick and choose which scripts get loaded into the ...
0
votes
0answers
23 views

How to properly make a blog roll?

I know that there's a home.php for the blog roll. However, I've been seeing a lot of WordPress sites lately and their blog rolls are under "articles" or "writing" like "somone.com/articles" or ...
0
votes
1answer
36 views

How to add current custom taxonomy slug to body class

My theme uses custom taxonomy called "kbsection" and there are lots of sections set up (instead of categories). There is also a custom post type and the posts are assigned to sections. I need to ...
0
votes
2answers
43 views

How to get the posts of a custom taxonomy term

I hope someone will help me: I have a Custom Post Type (Movie) with its custom taxonomy (Producer), this taxonomy has its own terms, for example 'WarnerBros'. How I can get all the posts of my term ...
0
votes
1answer
24 views

Custom posts - tag pagination

I'm using the following code to output the custom posts that belongs to a tag: add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if(is_category() || is_tag() ...
0
votes
0answers
27 views

Using a custom template to fill a page

I have a custom post type, which I would like to display on a standard page (because of my single page layout). I tried this using a custom template, but the page renders completely empty. What am I ...
0
votes
0answers
39 views

Meta box from child theme

I've done some searching and can't find exactly what I'm looking for. I've found this, removing meta boxes but I need to add. I did try changing that to add meta box. I'm wondering if it is possible ...
0
votes
1answer
33 views

Custom metabox fields not saving when limited to a certain CPT

I have a series of CPTs, each with their own custom metaboxes. They all work great - display where they should, saving how they should. One issue I have found though is that they also ALL run their ...
1
vote
1answer
59 views

Change slug of registered custom post type in child theme

I successfully renamed a custom post type registered by my parent theme in my child theme using this method. The problem is, my permalinks haven't changed. So when I change portfolio to homepage and ...
0
votes
1answer
31 views

add custom field to custom post type

I want to add custom field of file uploading control to upload image files in my custom post type page(New/Edit). I have searched in Google but no tutorials have been found. please, help me. Thanks in ...
0
votes
0answers
16 views

Query custom post in tag archive

I created a custom post and added the standard Wordpress tag functionality: function btp_work_register_post_type() { $args = array( 'label' => __('Works', 'btp_theme'),'labels' ...
0
votes
0answers
17 views

wp_include_post in custom post with coustom field

I'm new in wordpress and my english are not good. I'm using Custom Post Type UI plugin to create a post type "Product" and Advanced Custom Fields plugin to create some custom fields like address. Now ...
0
votes
0answers
18 views

pagination not working on page template

I am having a custom page for displaying community posts, where i want to display the posts posted in last 30 days sorted in desc order by meta value of post views which has to be greater than ...
0
votes
0answers
13 views

Social Media Plugin Settings not showing up in Custom Post Types (Wordpress Backend)

I have created Custom Post Type "Guest Posts" using Custom Post Type UI plugin. The post type is essentially similar to Wordpress default "Posts". I recently purchased a Social Media plugin and it ...
0
votes
0answers
6 views

Beste practice settingup a affiliate webshop in WordPress (need opinion!)

Currently we are thinking of expanding our sports community with a affiliate webshop to help our users choose better sports gear. I'd like to manage the shop by hand in WordPress but I'm a bit in ...
0
votes
1answer
23 views

Dynamic category name in query post

I want to make the following query_posts to use the current page's category name. For example, the user is located at: examplesite.com/category/apples/, and i want to use "apples" and for a different ...
4
votes
2answers
97 views

How to get term link that crosses different custom post types?

In my WordPress project, I have several different custom post types and they all share a common taxonomy. I am in the final stage of the project and now is time to link all custom post types using a ...
0
votes
1answer
81 views

Complex strcuture as CPT or taxonomy for use in woocommerce product variations [closed]

In woocommerce, I've got a bunch of products, which all have a certain material assigned. My current implementation of a material is a CPT (with about 20 fields (color, transparancy, reflection, ...
0
votes
0answers
14 views

how to override a custom post created by the plugin types

how to override a custom post created by the plugin types. I need to add a slug for translated post. for exemple i have a custom post type named 'products' i need to add a slug 'produits' to the ...
0
votes
1answer
39 views

How to set up multisite for multi language?

I am getting headache about this. How easy to do this? I have a site in US english. 1. Now : Want to create three sites for .de, .es, .co.uk so the sites will be www.mysite.com - default site ...
0
votes
1answer
19 views

Translating custom post type metaboxes

Is it possible to translate custom post type metaboxes (label not values of metaboxes fields) with localization? Or do I have to use some plugin like WPML? Thank you in advance. I have read this ...
0
votes
0answers
29 views

Creating search.php for Wordpress with custom fields feature

I have seen a Wordpress site which has below features in its search.php section. http://www.example.com/category/film/?directors=Brad%20Anderson ...
0
votes
1answer
44 views

Using tax_query to get single post per category

I have a list of magazines I need to categorize and sort. I have created a custom post type and registered a custom taxonomy to organize them. Category Structure: Print Magazines (parent category) ...
0
votes
0answers
20 views

how to edit custom fields of type gallery from front-end

i have added custom field name "gallery-photos" and type gallery . but i am unable to edit it in front end using your plugin i tried using : but i it just show array. Please guide me how to do it ...
0
votes
1answer
92 views

Dynamic bootstrap tabs with post_title doesn't display the_content

Im trying to use bootstrap tabs to have a tab system following: Each tab has the_title (post title), on click of each tab, display the content. So far, I have all the tab listed correctly, and the ...
0
votes
1answer
36 views

How do I get the index for a custom post?

This is kind of a different request, but my client wants the index of a custom post type. Basically for a regular post, they can select 1 custom post from a list in a custom field to "attach" to the ...
0
votes
1answer
51 views

Custom post type and custom taxonomies display

I have the following CPT and Taxonomy in my WP: CPT: magazine Hierarchical: true Has Archive: true Custom Taxonomy: authorname (Magazine Author. Not the same as WP Author) Attached to: CPT ...
0
votes
0answers
16 views

Taxonomy terms by post type and category?

I'm trying to return the terms of a taxonomy that is used by a custom post type in a specific category, I can return all the terms of the taxonomy but I want just the ones used by that post type and ...
0
votes
1answer
32 views

Can not hook into custom post type template with: is_page() conditional?

I am using a custom post type: FAQ, to create an ongoing page of FAQ items. I have created a custom template: faq-template.php, to display the items. I need to hook other elements into the bottom ...
0
votes
2answers
43 views

How to create subcategory for Custom Post Type?

I'm using CPT UI and I've manage to create a working custom post type called "Cars" I would like to have "Sub Custom Post Type" like "Honda" for example and models like "M1", "M2", "M3" related to ...
0
votes
1answer
24 views

WP_Query for CPT with filter by another WP_Query

I'm working on a project have 2 CPTs: Projects Units Every Unit has a meta value containining the id of Project Every Project is assigned a custom taxonomy named Regions Now I need get all Units ...
0
votes
0answers
28 views

Display Custom Post Types depending on checked radiobutton

I have created this option page for custom post types: add_action('admin_menu', 'add_global_custom_options'); add_theme_support( 'post-formats', array( 'Random', 'Order', 'Category' ) ); function ...