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

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

Custom Post Type Meta Box Content Showing In Search Results

When I search my site it doesn't seem to pick up the content I have in my custom post type meta boxes. This is the code for some of the meta boxes in my function.php file. // Add the Course Meta ...
1
vote
1answer
16 views

Multiple custom post type loops in category.php

I have multiple custom posts types that use the same category taxonomy. Let's call the CPT's 'venue' and 'story', and say we have categorised each of them as 'foo'. I already have the following code ...
0
votes
0answers
47 views

Issue on Counting CPT's Under Taxonomy Term

I am using this code to count number of Custom Post Type $tax_terms = get_terms($tax, $args); foreach ($tax_terms as $tax_term) { echo '<li>' . '<a href="' . ...
0
votes
0answers
16 views

Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update

am using this code to create a Metabox for CPT. Now I am able to view the updateded / saved Text input on post but the Checkbox and selected options return null after save or update. Can you please ...
-1
votes
0answers
16 views

create order list post type with select option on page layout

i early for wordpress codex. i get some case about how to change order list custom post type by guest, so I have a custom post type of property, I created a template page. The file ...
0
votes
0answers
7 views

Icon 32 for Posts Product Index Page

Can you please let me know that if WordPress yet supporting Icon 32x32 in index page for Custom Post type? I am able to add icon 16x16 for CPT Menu but cant's find any option to add Icon into index ...
0
votes
1answer
23 views

Getting the IDs of a custom post type

I have made a custom post 'case studies' which has a number of posts. I wish to get the IDs of each of these posts to manipulate the data, but despite looking at similar threads, I cannot piece ...
0
votes
1answer
21 views

List all posts from custom post type by taxonomy

Having custom post types with taxonomies. Lets say I have a custom post type "Products" with taxonomies "new", "old", "fashion". Now I have a Nav where I can click on ...
0
votes
1answer
22 views

Nav style for current page with custom post type

I'm trying to style the navigation of a WordPress site using the following CSS to highlight the current page or parent page. I'm using a custom post type to display projects. .current-menu-item > ...
0
votes
1answer
22 views

Custom Loop for Custom Post Type

I'm using WP 4.0 and Headway as my theme. I've created a custom post type called 'property' and am looking to create the loop in 2 columns. but I'm not sure what to add to the following code to make ...
0
votes
1answer
17 views

How to define which register_post_status goes to which register_post_type?

New to registering post types but looking at samples, and the codex not helpful here. I am not understanding how the two of these relate? This is just bare bones so someone can explain (the parameter ...
0
votes
2answers
29 views

Only One Post of Custom Post Type Appearing on Template Page

I'm not sure if it's a database or template issue, but on this template page only one post of my Custom Post Types are appearing. There should be at least two. The page uses an isotope.js script, but ...
1
vote
1answer
25 views

Adding menu_order to CPT admin page

I have a custom post type (cpt_roundtable), and am trying to add a column to the admin page showing the menu_order for each entry. This is in my functions.php file. function ...
0
votes
1answer
18 views

Different categories for custom post type

I use this code to create a new custom post type, but the problem is that it shows the same categories of default posts. Is it possible have different categories for this custom post type? function ...
0
votes
0answers
23 views

sharing slug between taxonomy and custom post

I am having trouble getting the relationship between a custom post and assigned taxonomy to work. The custom posts are clinics, the taxonomy is the location of each clinic: ...
0
votes
1answer
19 views

Custom Taxonomies not appearing in Admin

I've made a plugin of a custom content type and taxonomy. The CPT is showing fine, but the Taxonomies are not. There's a lot of code, but the taxonomy information is parsed below: Full code can be ...
0
votes
0answers
21 views

Custom Post Type rewrite permalink

I am trying to rewrite permalinks for my custom post type. The structure I look is: /%custom_post_type%/%custom_taxonomy%/%date%/%postname% Any ideas how can I achieve that?
0
votes
0answers
8 views

Custom post type pagination [duplicate]

I'm trying to get pagination for a custom post type. I don't know what's wrong with the code but it doesn't work. This is what I have done so far: <?php $query = new WP_Query( ...
0
votes
1answer
45 views

CPT Repeatable Fields + Undefined Index

I'm using this code here for repeating fields in a CPT (yes, I know of ACF and a few others), and have tried to add a third field. The field is currently displaying in the meta box, and is output on ...
-1
votes
0answers
18 views

UnderscoreS_ Startup Frame not showing Page Attributes > Parent Template dropdown [closed]

S_ Startup Frame not showing Page Attributes > Parent Template drop down menu on Regular pages or Custom Post type. I've included the following line to my functions.php add_post_type_support('page', ...
-3
votes
0answers
11 views

I need the same search function as this WP theme [duplicate]

http://demo.themefuse.com/?theme=autotrader&device=desktop The search function (especially when you click Advanced Search) is pretty much exactly what I'm trying to achieve - but don't know where ...
-1
votes
0answers
19 views

How do I implement my search form into a functioning Wordpress search form? [duplicate]

Here's the code for my search form: <form role="form"> <div class="form-group"> <select class="form-control custform"> ...
0
votes
1answer
40 views

Creating a search form for custom fields

I have built a theme for a car dealership. Each car is a custom post type ("vehicle"), and has about 12 custom fields with things such as Make, Model, Mileage, Fuel Type etc. etc. So basically on the ...
0
votes
2answers
22 views

Using a Single Custom Post Type Template for Multiple CPTs

I'm working on a major WordPress site and ran into a problem where I need to use multiple custom post types, but I only want to use one template for all of them. I found a code by Brad Dalton of ...
0
votes
2answers
47 views

Permalinks when using Custom Post Type with static page for archive

I have created a custom post type called "portfolio" and I use a static page to list my portfolio posts because I need to add content using the content editor. My problem is that I would like this ...
0
votes
3answers
28 views

Display different information of a custom post type

I'm developing a real estate site for a client and I'm struggling a bit with it. I created a custom post type called "Property". A property can be on sale and/or on rent. Two different menu items in ...
0
votes
0answers
15 views

I cant get archive-gallery.php for custom post types

Hi to all I have just created a gallery with the codes below: //---------------------------------------------- //----------register and label gallery post type ...
0
votes
1answer
22 views

Create an Employee register [closed]

Not sure if this is the place for this question or not, but I'm sure someone on here can guide me. I'm looking for a plugin or Wordpress hack with custom post types to allow me to create an employee ...
0
votes
0answers
36 views

Bootstrap Carousel problems

I am attempting to use Bootstrap Carousel in my WordPress posts. I created a custom post type called "images" and made sure it's visible in posts, which is where I want to use the carousel. I uploaded ...
0
votes
1answer
35 views

How can I list custom post type categories of portfolio

this code below lists wordpress categories and works <form action="<?php bloginfo('url'); ?>/" method="get"> <?php $select = wp_dropdown_categories('show_option_none=Select ...
0
votes
1answer
20 views

WordPress custom field images not getting inserted into array

I am using Wordpress to create a dynamic gallery using Bootstrap. I created a new custom field and then set it to 'images' and then assigned it to my post type. It then shows up in my post, I uploaded ...
-1
votes
1answer
30 views

Create page using same slug as custom post type

I am working on a site for a client who has custom post type called "practitioners" and several posts within this displaying info related to different practitioners. I want to create a page with a ...
0
votes
1answer
30 views

Admin: Get all user for Custom Role

I made a custom post type evenement with these capabilities. Here, I just put the capabilities parameters. 'capability_type' => 'evenement', 'map_meta_cap' => true, 'capabilities' => array( ...
0
votes
1answer
20 views

Enabling permalinks disables custom page template

I have assigned a custom template on a page in wordpress, but it's not working anymore after I enable permalinks. Instead of the custom template, the "post-type-archive-portfolio" template is used. ...
0
votes
0answers
20 views

Using custom fields globally?

I'm trying to use the value of one custom field on multiple pages and posts. I'm a newbie to PHP and custom fields so what I'm trying to accomplish could possible be done using a different method. I ...
0
votes
0answers
37 views

Preview with Custom Post Type Not Working

At this point I have tried everything I know to fix the issue. Issue: preview only works right after a custom posts is loaded or updated. If you make any changes or hit preview twice without updating ...
0
votes
0answers
23 views

How to e.preventDefault() on an admin post page for a submit() action?

Lately, I have had a problem with a seemeingly simple task of preventing a form submission an a post admin page in WP. In a nutshell: I created a meta box on an admin custom-post page that includes ...
0
votes
1answer
43 views

How to List CPTs Under One Tax Term

I am having some difficulties to get CPTs which are under one Tax Term. For Example if I have a Taxonomy Called "Movie" and Tax terms as: A B C How Can I list CPTS which are in Tax "Movie" and ...
0
votes
2answers
30 views

Reworking function for counting custom post type posts count

I am trying to rebuild my inline posts counting to a function. What would be the best way to do that? Here is my inline code: $posts = ...
0
votes
2answers
36 views

Custom taxonomy wp_query woes.

Here's a brief outline of the set-up: "The Art" CPT is where all the art and art descriptions are uploaded. In this CPT you can choose the category (custom taxonomy) of the art--painting, jewelry, ...
0
votes
0answers
12 views

Select value don't stay selected after save

I did a multiple select item that takes his options from another CPT, it works but after the saving the selected items don't stay selected. this is my code for the meta box global $post; echo ...
0
votes
3answers
36 views

How to create custom post type like Page

I want to create a Custom Post Type like Post or Page, It should have Page templates Option. This is for multilingual site. Any comments on this ?
0
votes
0answers
11 views

Do not count menu items in posts_per_page

Custom type posts are added to query for category page: function test__pre_get_posts( $query ) { if( !is_home() ) { if( is_main_query() || is_category() ) { $query->set( 'post_type', ...
0
votes
3answers
42 views

Getting Twitter Content on My Blog

I'm the editor of a niche blog that posts lots of great content. We also post links to other sites/resources in our Twitter feed. What's frustrating to me is that outside content on our Twitter feed ...
0
votes
1answer
23 views

Remove the “View” Link in Post edit Admin

add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 ); function remove_row_actions( $actions ) { if( get_post_type() == 'my_cpt' ) unset( $actions['view'] ); return $actions; ...
3
votes
2answers
59 views

Pushing a custom post type to the top of the search results

Apart from posts and pages there are profiles on my site. Does exist some way how could I push them to the top of the search results? Currently, results are ordered at first by keyword and then by ...
0
votes
1answer
24 views

Custom Post Type not visible on category page

I would like to use the default category for my custom post type, but when I open the category page there's no posts there. The loop is very simple: <?php if ( have_posts() ) : while ( ...
0
votes
0answers
9 views

How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”

I have a custom post type for a plugin I'm creating and the label for the "add an item" type of button (at the top of the list page) needs a partner-button that says "import" and one that says ...
0
votes
0answers
6 views

Creating custom rewrite rules for site sections

I have a WordPress site with several custom post types. I would like to group them by a URL prefix. Maybe something like this: www.example.com/ prefix_one/ post_type_one/ ...
0
votes
2answers
16 views

Filtered by a custom field, ordered by another

I am trying to loop custom post-types, filtered by a custom field artist-status => invited and ordered by another custom field last-name alphabetically. Here is what I managed to write, and it ...