Tagged Questions

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

learn more… | top users | synonyms (1)

0
votes
1answer
18 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
20 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
20 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
40 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
47 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
21 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
45 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
80 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
18 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
75 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
1answer
67 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
20 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
69 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
77 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
51 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
33 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
18 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
96 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
58 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
12 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
53 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
29 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
44 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
16 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
46 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
13 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
25 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
15 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
41 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
28 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
63 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
10 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
37 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
70 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 ...
0
votes
0answers
15 views

dispaly page order with page name in custom post template

Hi i am building a custom template to show the list of pages names with link to the page, do we have any chance to show its parent and its menu order. by using wp_list_pages
0
votes
1answer
20 views

Why is a custom post type's URL “/?cposts=name-of-the-post” but default post's URL is “/?p=ID”?

The normal posts, whose post_type is "post" in the database, are accessed through the URL structure of www.blog.com/?p=ID where ID is the actual ID (the number) of the post found in the database. ...
0
votes
1answer
41 views

multiple custom post type category selection search

I hope it's clear from the title but let me try to explain it better. Looking at this image should make it clear: I have custom post type names Product and categories related to it. What I am ...
0
votes
1answer
25 views

Create custom post type with parameters

I have a lot of custom post types and i want to create them all with in the same function, so is there any way to send parameters to the function when i'm creating the custom post type. I thinking of ...
0
votes
1answer
45 views

Custom Search Template for Custom Post Types

I know this is asked a million times, and I've found the solution. It seems fairly straight forward but it's not working for some reason. I wonder if it has something to do with the fact that I'm ...
1
vote
1answer
38 views

Using a custom post type for an RSS feed only

I've had a request from a client which is causing me a bit of a headache! They want an RSS feed which shows content that isn't featured anywhere on the website. I've registered a new custom post ...
0
votes
0answers
27 views

Custom Post Types and Posts are mixed

I need help with a problem related with CPT and WP Database. I have a wordpress install with bbPress and a custom post type called Destinos. The problem is that when I´m looking for the forums, or ...
0
votes
1answer
45 views

Custom Endpoint For Custom Post Type from Child Theme

I'm working with a child theme. Main theme has a custom post type called "Place". I need to change that into "Location". However, I changed all levels using wp_post_types object. Now I need to change ...
0
votes
0answers
48 views

Foreach inside shortcode not working as planned

I have a loop inside a shortcode to display the list of posts for each category (schedule-day) in a custom post type (schedule). The first category lists the posts in said category just fine, but ...
0
votes
1answer
56 views

How can I add columns to custom post tables

I have created a custom post type. I also have added a meta box to my custom post type. What I want to do now is add my meta box as columns to my custom post table. My Custom Post add_action( ...
0
votes
0answers
28 views

Add slug current in get_posts( $args );

In my Costum Post Type,I would like to have a list of my CPT (aka "createur") in my current catégory (aka "domaine"), my code is in taxonomy.php Example : ...
0
votes
0answers
55 views

Custom sub menu is not showing in admin dashboard

Here I am making one small plugin for learning purpose.I have made one admin menu called Feature Slider and it has three sub menu Feature Slider, Add New Feature Slider and Add new movie. 1st two menu ...