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

learn more… | top users | synonyms (1)

0
votes
0answers
21 views

CPT archive drop down list

after adding the function from here i try <select name=\"archive-dropdown\" onChange='document.location.href=this.options[this.selectedIndex].value;'> <option value=\"\"><?php echo ...
1
vote
1answer
68 views

pre_get_posts on custom post type

I have a custom post type which displays posts just fine on the page when I use a custom wp_query however, that breaks pagination, so I tried to use pre_get_posts instead as I'm already using that to ...
0
votes
0answers
12 views

Importing Custom Data From Bespoke CMS

I've seen various answers to parts of my question but not a "complete" answer as yet. If one exists, please do help me out and let me know! We currently have a bespoke CMS running a website. What ...
0
votes
1answer
27 views

Display Custom taxonomy, Child terms and posts in a template Under Specific Parent terms

I want to Display Custom taxonomy, Child terms and posts in a template Under Specific Parent terms. I need is this: Parent Taxonomy Term -- Child Taxonomy Term --- Post Type --- Post Type --- ...
0
votes
1answer
43 views

Disable Facebook Comments Automatically On CPT

I am working with the Facebook comments plugin. I have a custom post type that never uses Facebook comments. I am trying to create a function to automatically turn these off when the custom post ...
1
vote
1answer
50 views

CPT Group by Date metabox Value

I am building an event plugin using a Custom Post Type. I have a loop running that will display all events on a page using a shortcode. My question is how can I set it up so that it groups the events ...
0
votes
0answers
32 views

Custom Post Gallery: Media Library / uploaded to this post

Gallery: Media Library / uploaded to this post I have custom posts I want to add a gallery to, but filtering the uploaded images using Media Library / uploaded to this post dropdown selection does ...
1
vote
1answer
47 views

Search results ordered by custom post types are not grouped

For a WordPress website I have a couple of custom post types, named cities and books, and also the regular blog posts. I have customized the search results (only search in the post title) page so that ...
0
votes
1answer
30 views

Getting custom post types to properly display alphabetically

I'm trying to get the sub loop of custom post types to display in alphabetical order, but having no luck. I've tried applying ksort and asort to the $posts array, but it just reorders the ID display ...
0
votes
1answer
17 views

I want to show specific parent terms child term with post list

Is there a way I can list all posts in a specific parent terms under child term with 5 post list. For example; parent terms (specific By id or slug) Child term Name post Title post Title post ...
0
votes
1answer
31 views

Creating a Tabbed Widget

I have setup my widget to retrieve data from custom post types. I am using WP Query to show the data, but it still not showing. I have also setup the file in a gist for easier lookup ...
0
votes
0answers
36 views

Wordpress Child Categories Display as Parent Categories

I used Custom Post Type UI plugin to create a custom post type (for example, people) and a custom taxonomy (location). I populated the custom taxonomy with 50 US states using BulkPress plugin. Say I ...
0
votes
1answer
12 views

Is there a way to connect a custom post type to another custom post type's taxonomy? (specific to locations)

Curious to know if anyone can provide a solution to the following... I have 2 custom post types: Offers Location (taxonomy) Businesses Location (taxonomy) I want to sort both offers and ...
0
votes
1answer
67 views

WP_Query with custom post type search showing all results every time

I'm working on building a search form for some custom post type. Problem is, the search yields the same results every time, which is all posts of that custom type. Please advice: Code: Search form: ...
0
votes
1answer
21 views

custom fields not showing before get_header

I am trying to use this code in my WordPress site <?php if(get_post_format() == 'video'){ function insert_game(){ get_template_part( 'content', 'video-top' ); ...
0
votes
1answer
67 views

How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme's 'native' plugin?

I need the child theme to use a 'modified' version of its parent custom post type and correspondent page template. Basically I would like to add 5 new metaboxes, change 2 existing labels, and include ...
0
votes
1answer
15 views

Use the page picker from wordpress menu creation page

Is it possible to use the page picker from the menu creation page on other pages in admin mode? (This thing: ) I am creation a custom page type that will show specific pages in a list, and to ...
0
votes
2answers
44 views

Running a song lyrics site on WordPress

I converted an old site, which used to run on a CMS called Smarty, to WordPress and am trying to make the look and feel of the site look like a proper music lyrics site. There don't seem to be themes ...
1
vote
1answer
59 views

Save Press This Posts in a Custom Post Type

I'm wondering, is there a way to modify the "Press This" bookmarklet so that posts are saved to a custom post type instead of to a post. Looking through, it doesn't seem as if there are any actions ...
0
votes
0answers
33 views

Display list of Child Custom Post Type into Parent Post

I am trying to display list of child custom post type "report" into parent custom post type titled "List of Weather Reports". I am using the following code: function wpb_list_child_pages() { ...
0
votes
0answers
29 views

Post Type with Feature Image + Image from metabox - Catch each a unique way

I have a Custom Post Type and'm using an image metabox (Odin theme metabox class). I need to render loop in the url image bgimg metabox, and Featured image as .... The Contrary I can, however when ...
0
votes
0answers
7 views

New notion of custom posts subset

I want to create an image voting site. As a user I want to: Create a "Poll" that belongs to some category (custom wizard process) Post an image to any "Poll", mine and thine (limit of 1 post per ...
0
votes
2answers
21 views

Query only current post type using taxonomy

I have several post types "Courses", "Institutes" having same taxonomy "country". I am using this to get term on single-courses.php <?php $terms = get_the_terms( $post->ID , 'country' ); ...
0
votes
1answer
28 views

Wordpress export tool doesn't export post-format value of custom post type?

I already created a custom post type with post-format support declared. register_post_type('portfolio', array( 'labels' => array( 'name' => __('Portfolio', "xxx"), ...
0
votes
2answers
52 views

Proper way of making custom post type landing page or archive page

I always run into an issue with creating archive or landing pages for custom post types and wanted to know how others handle this. If I want to have a landing page for a custom post type, however I ...
0
votes
1answer
26 views

CPT and metabox: create multi checkbox by using array?

I have a custom post type to display informations of book. Then I created a metabox for it. And: I need to add a warning system (like: for kid, violent, mature, adult, etc...) chosen by multi ...
0
votes
2answers
42 views

White screen error for a custom theme

I have created a theme for one of our clients using bootstrap framework! When i was working on it on Localhost it works Correctly, but when I Uploaded it doesn't work. When I Activate it from ...
1
vote
3answers
39 views

How to search map address in custom post type?

I built a custom post type "shop" with Custom Post Type UI plugin and added a field "address" (Google Map type) with Advanced Custom Fields plugin. From the response of WP_Query('post_type=shop');, I ...
0
votes
0answers
13 views

URL Structure for Custom Page Type with Custom Taxonomy

There are a number of questions here that are similar to what I'm trying to do, but none seem to answer what I'm looking for. I have a custom post type with a rewrite like: 'rewrite' => array( ...
0
votes
1answer
42 views

Get posts in same category not working

I have a custom post type with custom category taxonomy. On the CPT single templae I want to list out other posts in same categories, but I can't get it to work. My current code: <?php foreach ( ...
2
votes
2answers
192 views

Conditional to modify query results

I'll admit, I'm not a PHP expert, nor am I familiar with all of the WordPress functions and hooks. I've been stuck on an issue, searching for help without much success, and I was hoping that someone ...
0
votes
0answers
25 views

Split posts into separate screen on custom post type admin screen

I have a custom post type called 'event' that has a meta_key of event_status with a value of either 'upcoming' or 'past' depending on the event date. I am trying to split all past events into their ...
0
votes
0answers
34 views

Restore the “Restore | Delete Permanently” actions for custom post types

So I have a custom post type with no title, therefore I have lost the action bar. This wasn't such an issue for me until I realised when I went to trash I no longer had the "Restore | Delete ...
0
votes
0answers
14 views

Rewrite URL of a page which is child of a Custom Post Type

With the plugin Types I've created a hierarchical custom post type "journeys", and then I set that normal "pages" are child of "journeys". I've created a "journeys" post called "My First Journey". ...
1
vote
1answer
29 views

How to convert custom post type based list to a dropdown list?

I have been created a query to list the post from current taxomony, filt by term slug for my book site (as table of content). And it worked very well. But, is there any way to convert it to a dropdown ...
0
votes
0answers
23 views

WP Query - Group by relation (custom post type)

I have a custom post type Office. An office has an address, email, ... . An office also has a relation with a custom post type Region. So an Office must have a relation with a relation with one ...
0
votes
0answers
41 views

Problem assigning Custom User Roles to Custom Post Type

I'm having issues assigning custom capabilities for custom post types to custom roles in the WordPress admin. The markup works for one post type but not others. Let me explain a little... I've ...
0
votes
0answers
52 views

Assistance with complex query based on ACF Post Object Field

I got the following scenario: Two Custom Post Types: Game Bonus Two Custom Taxonomies (Not Hierarchical ): Game-Type (Poker, Roulette, BlackJack, etc') Bonus-Type (Free Credits, Free Spins, ...
0
votes
2answers
26 views

Template for custom taxonomy for custom post type broken

I'm trying to set up my custom template for a custom taxonomy. When I click on a category link to display the custom posts in that specific category, I get the 404 page. My custom post type file name ...
0
votes
0answers
18 views

Dynamic CSS for CPT that requires post meta data

I have an, admittedly weird, CPT structure. I have two CPT's, one is 'section' - which is basically meant to represent a tag in HTML - and the other is 'sectioned_page' - which displays user chosen ...
0
votes
1answer
24 views

Create query for both custom post type and category

I have a custom post type called articles and have category = news I want to make a query from the two parts to get content from (cpt=articles, category=news) in the same query? How can I achieve ...
0
votes
0answers
39 views

How to get attachment's custom url using custom media uploader

I'm wondering how to retrieve attachments's 'Link To' field when an image is inserted into a custom field using custom media uploader. And here's the code used: var frame = wp.media({ ...
0
votes
0answers
30 views

How to exclude event custom posts if date of event is in the past?

I'm using a theme with a custom post type for events which creates a calendar, ordered by an Event Date specified in the event posts. The theme also uses the Visual Composer plugin to create the page ...
0
votes
0answers
23 views

Setting title in the front end

I am trying to set up posting from the front end. Everything works, but I cannot get the title to set.. Part of code: (Some validation is done beforehand) $title = "abc"; // ADD THE FORM INPUT ...
0
votes
0answers
45 views

Unable to get the values for metaboxes for custom post type

I am customizing this webpaint theme.I added repeater fields to the custom post "portfolio" using this great class by OHAD RAZ , link for the website is ...
0
votes
0answers
19 views

How to get a single archive page to display my various custom post types respective terms?

Is there a way to make a single archive show the respective terms/categories of multiple custom post types ? So far i have been able to make use of a single archive.php to display my various custom ...
0
votes
1answer
28 views

Commas not displaying in implode

I'm trying to separate some taxonomy terms with a comma, but I can't see to get the commas to show correctly. Here's what I got: <?php $terms = get_the_terms($post->ID,'type'); foreach ( ...
0
votes
0answers
45 views

Reverse ACF relationship field

I am using a ACF relationship field to associate data to one another (what members belong to a committee). I now want to reverse that relationship so that you can see what committees the member ...
1
vote
1answer
79 views

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...
0
votes
0answers
34 views

Custom Homepage As Single Page or Custom Post Type?

Conceptual question for the WP community: I need to implement a custom homepage for a new site. It has some custom stuff going on but nothing too crazy: 4 big images, a carousel, some calls to action ...