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

learn more… | top users | synonyms (1)

0
votes
0answers
18 views

Get Taxonomy Link if is in another Taxonomy

I am working on a site with a custom post type and two custom taxonomies: "book" and "chapter". I want to display a list of chapters of books. The Chapter list would link to posts tagged under that ...
0
votes
2answers
29 views

the title not working from a custom post type

I am trying to show a list of the latest 3 custom post types in the footer, and while I am getting the permalink ok for the href, the title is not displaying. Here is the code I put in the footer: ...
1
vote
0answers
26 views

custom taxonomy archive by year

there is one custom post type News there are 3 taxonomy terms(like category). 1). press-release 2). in-the-news 3). events i have list out all this three category. now what i am looking for is ...
0
votes
1answer
38 views

Howto: use existing post_meta as options for a different metabox (checkboxes or list)

I want to create an "Employee" Custom Post Type ("Add New Employee") wherein the employee may belong to one or many offices. The user needs to be able to add/edit/delete offices via a separate ...
0
votes
0answers
15 views

Feed shows an 404 error for custom post types

I created a custom post type called "item" so all my posts look like this mydomain.com/item/somepost. Thats fine, however, in my header the feed for every post is linked like this: ...
0
votes
0answers
19 views

select and save custom taxonomy from front end

i have 2 custom taxonomy for custom post type event, but i can't get it to save on backend from frontend form, here is the link to site http://wheresthaparty.com/wordpress/post-party/ and here is the ...
0
votes
0answers
15 views

“Add post form” inside a custom admin widget?

I have created a custom post type (support ticket) and a custom user role (client). So, I want to create a widget that allows a client to add a new ticket (which contains only 3 custom text fields). ...
0
votes
2answers
18 views

Wordpress app page not found error for posts with hyphen in permalink

I need some help related to permalinks. I have two custom post types "books" and "authors"(created using CPT UI plugin). i have created few authors where the permalink is generated as ...
0
votes
0answers
17 views

How to make a wp_title filter hook change the title column in custom post types reliably

I have written code for a custom post type. The custom post type is loosely based on the cpt-bootstrap-carousel plugin, but only as far as functionality goes. My code makes use of the ...
0
votes
1answer
8 views

Post content is cleared when updating

When I'm updating a post, its content is being cleared. What's wrong with the code below? add_action( 'save_post', 'eb_save_subpage_data' ); function eb_save_subpage_data() { global $post; ...
0
votes
0answers
13 views

display meta value depending on post selection

I have created form for event.In which I have added selectbox for events I have created meta value for price in post Now I want to display meta value depending on post selection from selectbox how to ...
1
vote
1answer
34 views

Custom Post Type with static page for archive

I have created a custom post type 'books', but I don't want to use archive-books.php to list the books. I need to use a static page to list my books because I would like to add content using the ...
0
votes
1answer
17 views

Custom sortable pages on custom post type

I created a custom post type but I want to put a functionality like the Menu Options located on Appearance>Menu. Which I can just choose a page on the side metabox then add it on the sortable area. ...
0
votes
1answer
14 views

Admin menu post type

Is it possible to get a container post type menu item with all custom post types inside of it?! 1.All post types 1.1 post type 1 1.2 post type 2 1.3 post type 3 1.4 ect....
0
votes
0answers
13 views

Let user feature a specific post on the front page

I am making a WordPress template with a static front page. I want to feature a single post on the "About" section of this front page. This will be a preview with a featured image and a link to a full ...
-1
votes
1answer
31 views

Issue On Listing Woocommerce Parent Tag List

I am having some issue on getting top level terms of product_cat Taxonomy of WooCommerce First of all I have a code which list all Terms in product_cat as: $terms = get_terms("product_cat"); if ( ...
0
votes
2answers
43 views

How do I add custom fields to posts without having to manually add everytime I post?

I am new to wordpress but I was trying to add custom fields to certain posts but I don't want to manually add every time. I saw there is a custom post type class that you can specify but I didn't find ...
0
votes
1answer
16 views

How to delete all trashed item in one-go

Currently I'm using wp-optimize to remove all trashed posts, trashed comments, draft posts However, this plugin sometimes not working and more important, it does not delete any trashed items from ...
0
votes
0answers
10 views

Let the user duplicate chunk of meta boxes

I have a CPT 'Product', that can be rented or sold multiple times over. Each time a transaction takes place, the admin would like to update some of the information (such as sale date, condition etc). ...
0
votes
2answers
25 views

Calling an custom field from theme option at the frontend

I am having trouble calling a field and displaying its content at the frontend from a custom theme option page. This is the code I am using to display my custom theme option at the backend ...
0
votes
2answers
52 views

WP_query orderby not working after WP4.0 update [closed]

On my Wordpress-website, I have a custom post type used to display events and a page showing all events in the database. On that page, I'm creating a new WP_Query and displaying the results ...
0
votes
1answer
13 views

Wordpress giving a 404 page when passing a year argument different than the current year

On this page you will see I'm listing events that fall in certain months: http://conciergemaps.ch/events/ This is on Wordpress, When you select a certain month and year it appends the URL with two ...
2
votes
1answer
56 views

custom taxonomy and custom post type url conflict

i am having one serious url issue. there is news custom post type. it's slug is news. News taxonomy slug: news_category News taxonomy url is: http://domain.com/news_category/press-release i want ...
0
votes
0answers
32 views

404 on child page when parent page slug is identical to custom post type

The internet is swamped with this issue but all the results were from 2010-2011 so I wanted to check if there was any advancement in the matter. I have the following scenario: Created a custom post ...
0
votes
1answer
17 views

Function not pulling image or text from custom post type

//Custom Post Type register_post_type('inf_main_feature', array( 'labels' => array( 'name' => 'Main Featured', 'singular_name' => 'Main Featured', ...
0
votes
1answer
44 views

Notice: Undefined index: error and understanding wordpress

I am trying to create custom post types with wordpress 4. I followed a tutorial book called "Buildin Wordpress Themes From Scratch". I am on localhost so debug mode is on. When I try create a new ...
0
votes
0answers
49 views

Custom post type permalinks non working on wp 4.0

When I updated to WordPress v4.0 it removed all of my custom post type permalinks and replaced them with "/". I have 2 custom post types: "Business" and "Coupon". The permalink settings for Business ...
0
votes
1answer
36 views

Trying to write shortcode with get_post_meta but isn't working

I am trying to write a plugin with a CPT and have a shortcode to display the data. I can get 'the_title()' to work and display the title of the post type but using 'get_post_meta()' I can't seem to ...
1
vote
1answer
27 views

How to rank custom post type from score points

I use a custom field with is casino_rank_scorewith stores a point rating for example 4.9 All casinos is stored on custom post type casinos. I need to figure out how to get a rank listing like ...
0
votes
1answer
13 views

Display Custom Post if custom field is marked

I'm trying to get a custom post to show up on the front page only if a custom field I made is marked, otherwise it sould look for the one that is (and only one, not all marked). I currently have ...
0
votes
1answer
56 views

Custom post type / taxonomy rewrite archive page 2 gives 404

I've followed the code based off this and everything is working perfectly -How to create a permalink structure with custom taxonomies and custom post types like ...
0
votes
0answers
27 views

Custom Post Type admin order by usermeta value

I would like to allow admins(and users) to order the listing of posts by editor(custom role) last name(ASC or DES) while viewing the listing of posts in the admin area. I have a custom post type that ...
0
votes
0answers
10 views

Default custom column to off

Im currently building a plugin, that adds around 15 custom columns to a custom post type listing with meta data. When registering these columns they all default to being "on" in the screen options ...
0
votes
2answers
35 views

Display title list of all post of current post type

I have a custom post type called press. I'm on the template single-press.php What I want to achieve is generate a list of the titles (with it's corresponding link to it) of all press custom post ...
0
votes
1answer
26 views

How to change permalinks to taxonomy and post type's posts

Hello I want to change my taxonomies and posts permalink. I have taxonomies like that; Audi A1 1.4 TFSI 1.6 TDI A3 1.2 1.4 ...
0
votes
1answer
37 views

Generating List of Tags from Custom Post Type

I have created a Custom Post Type "model" with corresponding tags "model_tag". I am trying to generate a list of tags chosen for the post. I am able to generate a string using the code below, however ...
0
votes
0answers
7 views

Pagination Being Removed From URL with a Custom Loop

I'm having a little trouble with enabling pagination for one of my custom post types. Basically, I have a CPT of 'surgeons' which lists (surprisingly!) a surgeon - on their single page, I'm wanting ...
0
votes
0answers
26 views

If taxonomy has child-category then show child else taxonomy post

i have a custom post type name 'post_type' => 'albums' and taxonomy 'taxonomy' => 'albums_cate'. i have 4 parent taxonomy name -"personal,happy,smile,cry" and "personal" have 2 children(sub-category). ...
0
votes
0answers
11 views

wordpress custom url rewrite for custom post type

I have a wordpress page https://example.com/service-detail/, it shows some result. Currently if i have to filter result, a parameter is passed like this /service-detail/?services=myservice ...
0
votes
0answers
19 views

Get proper tag count for each post type [duplicate]

I am working on a plugin to port over a Druapl 7 installation to WordPress. I've found some useful tutorials on how to do this for Druapl 6 but Drupal 7 seems to lack any information. Nonetheless, I ...
0
votes
2answers
18 views

How to dynamically attach pictures to a carousel

I am trying to make single pages for each individual portfolio piece. I created custom posts & field types, but it only seems to allow one featured picture per post. Should I be adding my pictures ...
0
votes
1answer
14 views

Post to type posts in subdirectory. [closed]

I would like to do the following: I have a blog with my domain www.examplesite.com and got some posts on it. But I would like to move some of the posts into a subdirectory www.examplesite.com/extras. ...
0
votes
1answer
33 views

Hook when adding or editing a specific custom post type? [closed]

I'd like to insert a script and if possible some PHP for a custom post type. I'm looking for a hook to do this on the add new or edit screens. Any idea what I'd use for this? I tried "edit_post" but ...
0
votes
1answer
12 views

Custom Catagory not found

I created a custom post with a custom category like so function fitters() { $labels = array( 'name' => _x( 'Fitters', 'Post Type General Name', 'text_domain' ), ...
0
votes
1answer
24 views

Questions on WordPress Codex Concept

When I was reading the WordPress Codex about outputting the Post and Pages I saw these two Titles at Here Output a list of all registered post types and Output a list of all public custom ...
-1
votes
1answer
14 views

Remove base from the custom post type URL [duplicate]

I wanted to add blog before the post slug in the URL. The URL for the post type page was: http://example.com/blog/post-one So basically to add blog before the posts url in Settings >> permalink ...
1
vote
0answers
42 views

adding checkbox to meta

I have a custom post type that is working well and displaying/saving all the text fields. The issue is now I need to add 4 check boxes but not sure how to do that. Any ideas? function fitter_info() { ...
0
votes
1answer
9 views

Custom page template not being called

I've been learning Wordpress for the last few days but I'm having an issue with custom post types. I've registered the post type as below: function create_kitchen_type() { $kitchen_args = array( ...
0
votes
1answer
22 views

predefined custom field on registration page

What I want to do is, i have a professional theme (like elist from elegant theme) and in theme there are so many custom fields. I want to include those custom fields into my Wordpress custom ...
0
votes
3answers
69 views

Custom Post Type Name Causing Problem

Please ignore my poor English. I have custom post type (order). and its working like charm, But default post type (pages) list are not displaying in wp-admin side. You can see More information in ...