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

learn more… | top users | synonyms (1)

0
votes
0answers
22 views

Rewrite rules lead to blank page

Using a child theme, with custom post type article, trying to call a file from functions folder inside the child theme main folder (child-theme/functions), using this code in the child theme ...
0
votes
3answers
608 views

Adding Help Tabs To Custom Post Types

Using this well written post - tutorial Edit dashboard's help tab I have full control over all standard WordPress admin screens. Can this be modified to add "Help" Tabs to custom post types?
0
votes
0answers
7 views

“Costumize posts and pages” (price, nembres of rooms..)

Im the admin's (owner) website in the tourisme category, I want to make pages or posts with hotels, restaurant listings (list for hotels), each post in the list width some information (small ...
0
votes
1answer
11 views

Secondary loop pagination on custom post type single post gets redirected to first page

I would like to output related posts on a custom post-type single page. Everything seems to be set up correctly. When I hover over my pagination links I see ...
0
votes
3answers
1k views

Add multiple custom meta boxes to different custom post types

I want to add one custom meta box to a specific custom meta type "chifres" and two custom meta boxes to a specific custom meta type "presse". This is how far I've gotten: Here is my code: //Add ...
0
votes
0answers
6 views

Why is this custom taxonomy page showing all tags rather than the relevant tag?

I have a custom taxonomy 'keywords' which I am using to tag my custom content type 'publications'. I have a custom taxonomy-keywords.php page, and a loop of Publications using page-publications.php. A ...
0
votes
0answers
13 views

Previous and Next comment page link not work

I have a custom post type name recipe. I've already removed slug for post: From: example.com/recipe/cake-post To: example.com/cake-post But I have problems with break comments into page: previous ...
1
vote
3answers
458 views

Loop to fetch 3 post_thumbnail instances from 3 most recent custom post types named “portfolio”

I am trying to display 3 post_thumbnails from a custom post type "portfolio" on my homepage template. So one from post 'A' , one from post 'B' and one from post 'C' The image from post A will be set ...
0
votes
0answers
5 views

Show custom page template page name instead of post type archive in yoast SEO breadcrumbs

I have a custom post type named AWP Authors (slug: awp-author) and to display list of author I have a custom page template named AWP Authors Page which is used as custom template for page named ...
0
votes
1answer
285 views

Blank search results on custom search

I have a custom search with the following line of html in the form: <input type="hidden" name="post_type" value="product" /> This correctly appends: &post_type=product to the search query ...
0
votes
0answers
16 views

URL rewriting, problem getting arguments

How can I get URL/courses/[course_name] to point to URL/index.php?page_id=127&course_name=[course_name]? The redirection works well but I can't access the course_name argument. In fact, the page ...
0
votes
1answer
472 views

Hide Meta Boxes for Non-Admins

I have a review based wordpress site where I have a page for each different company where there users can review them. The theme I use adds a custom post type called "review" and I have used Press ...
0
votes
1answer
600 views

Showing the custom taxonomy parent term and child term of a post

Is there any way that you can show a custom taxonomy's parent term and child of a post? I'm currently using get_the_term_list() to display the custom tax terms of the post. The only problem is the ...
7
votes
2answers
510 views

What is singular.php?

From 4.3 we have a new template, singular.php. I tried to understand what is it, but I didn't get it. :) The page.php for pages. The single.php for every post types. If we have single-[post-type].php ...
0
votes
1answer
31 views

Custom post type AND custom taxonomy are not connected

I have CPT and Taxonomy (code below). When viewing taxonomy term archive page, it's empty. WordPress doesn't know it has include my custom post type to WP_Query. Am I doing something wrong? function ...
0
votes
1answer
17 views

Remove tinyMCE from admin and replace with textarea

I have created a plugin wherein I have a custom post type. I am using post_content for some simple text. I do not need to offer any fancy editing or insertion of data for this field, so I looked for a ...
0
votes
1answer
403 views

Custom post type is showing custom home page, not archive page

I have a custom post type set up (two, actually) that are not displaying properly. I am hoping that it is the same issue with both post types. Here is my code for one of the post types (portfolio). ...
2
votes
0answers
1k views

query_posts with a custom post type, a meta_query and sorting by post date?

I've searched the archives and found questions similar to what I need, but haven't found exactly what I want. I've got a bunch of products that are sorted by a meta_key of country, and I'd like to be ...
0
votes
1answer
32 views

Show Templates in Custom Post Type Editor

I know I can use templates for my custom post types like this: http://codex.wordpress.org/Post_Types#Template_Files But I would like to have a dropdown menu to choose a template, like that when you ...
1
vote
1answer
31 views

Set object terms not working on plugin activation

I am trying to create a couple of custom posts and set a custom taxonomy term to it on plugin activation. I am using the register plugin activation hook to do it. The posts are created properly, but I ...
0
votes
0answers
11 views

Display Authors Comments on Profile Page

Hi I am trying to display a authors comments on their profile page (author.php) however both codes I tried, seem to display everyone's comments. Also the second code method is suppose to link to the ...
1
vote
1answer
612 views

Custom Post Types, URL rewrite on multiple CPTs

Re: Custom post types, taxonomies, and permalinks by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
0
votes
1answer
665 views

WordPress import not importing custom taxonomy

I've posted this already in the WP Support Forum hoping to have more luck here. I'm trying to import a custom post type from one blog to another. (126 posts in the custom post type). I've exported ...
0
votes
2answers
967 views

Custom Post Type Set Comments ON by default without show METABOX

I've created a new custom post type for a specific posts. The posts from my new custom post type, have - by default - set the comments to "off". I need to the comments to be "on" by default. In my ...
0
votes
1answer
17 views

Generating and downloading files with WP API

Lately I was challenged to implement functionality that would allow users, editing specific custom post, to download json file based on meta of that post. I finally managed to complete the task (well, ...
1
vote
1answer
27 views

Am I using the flush_rewrite_rules function in the right place?

Hello dears I'm writing an admin panel for my new WordPress plugin base on the WordPress Settings APIs. I am defining a field for changing custom post slug from this admin panel. After the custom ...
1
vote
2answers
210 views

Custom Post Type and Labels

I was wondering if there is a way to edit the default field labels on a custom post, for example instead of the author field saying "author" have it say "keynote speaker" I found one solution listed ...
0
votes
1answer
14 views

Custom Post Type with Configurable Sidebar via ACF

I am using a custom post type (CPT) trainings on one of my client's sites. I've also added a CPT called sidebars, which can get linked into trainings or pages via the "relation" field type. To get an ...
0
votes
0answers
13 views

Cannot use pages created on WP

I am quite new to WP and I have recently taken over a development project of a page that I really don't understand quite well due to the weird options that the previous developer took. Unfortunately I ...
0
votes
0answers
25 views

Register new post type in plugin (multisite)

I'm currently trying to create a custom post type inside my plugin. Everything works fine in the back-end but when I try to view the post in the front-end then either it redirects me to the homepage ...
0
votes
0answers
23 views

Pagination of Custom Query inside a Shortcode on a Custom Post Type Page (singular)

I've done dozens if not hundreds of searches regarding my problem, but didn't find a solution anywhere. I really hope you can provide me a solution, that would be great! Thanks for reading. Heres ...
1
vote
3answers
7k views

Add Category Taxonomy Support to Custom Post Type

I'm writing some code that makes extensive use of custom post types- and I'm looking for a means of programatically adding a category to a defined custom post type, and then accessing its category ID. ...
0
votes
0answers
17 views

Taxonomy name in the URL [duplicate]

So I have a taxonomy of Clients linked to two custom post types (Press releases & Case Studies). What I want is the URL of a Press Release or Case Study post to have the client name (taxonomy ...
0
votes
1answer
21 views

How to use TOC with ACF?

I'm using ACF advanced custom fields plugin to create custom fields for my CPT where i replaced the content editor of my CPTs with a custom Wysiwyg Editor field (field name: full_text) from ACF in ...
0
votes
0answers
6 views

Custom Post Type Url with Custom Fields

I have basically the same issue as in this question: Using Custom Fields in Custom Post Type URL But can't seem to make this working for me. What I have: A custom post type called 'hebergements' ...
0
votes
1answer
884 views

Use Gravity Forms and a Shopping Cart for output to Freshbooks for an Estimate [on hold]

I've been asked to develop a website pretty much like (but not the same as): http://www.yoursingapore.com/ basically we need to allow people to add Wordpress posts (custom post types) into a sort of ...
0
votes
1answer
362 views

Show Posts in Vertical Tabs with Scrollbar

I have created CPT ( Custom Post Type ) called Recipes. I want to display all me recipe in Vertical Tabs. For Example; check the image below i have created. Image Example Click Here On the left ...
1
vote
1answer
988 views

Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?

I have a custom post type with a custom taxonomy (to show some "best practice" examples on my website). On the single-post-page (single-bestpractice.php) I wanted to show all the terms (categories) ...
0
votes
2answers
822 views

Custom Post Type Permalink Page Not Found

I've been wasting hours and hours trying to solve a permalink issue with custom post types. It keeps returning page not found (404). When I use the default permalinks, it works, but when I switch to ...
0
votes
1answer
39 views

ACF repeater field usage

I have a Custom post type "event" it has a repeater field "event_session" that has 4 subfields "session_start", "session_title", "session_description", "session_speaker" (a post object relationship ...
0
votes
2answers
569 views

Getting custom post type info using get_adjacent_post

This is an example of how I'm grabbing images from my custom post type now, using query_posts(); // query_posts stuff made up here. $my_array = get_custom_field('image:to_array', 'to_image_array'); ...
0
votes
1answer
28 views

Menu disappears with custom post type link

I’m working with Genesis Theme for a while but never got any problems:) This is my first big issue and I dont know how to solve it. I’m making a new website with Custom Post Types and WP All Import ...
-1
votes
0answers
19 views

Country specific stats [on hold]

I love the fact I can see how many countries view my blog but I can't get further insights aside from the country and number of visitors. Is there a possibility or another app which would allow me to ...
4
votes
1answer
1k views

wordpress plugin error handling

I am looking for a way to handle errors for a custom post type with its own custom fields. This is all part of a plugin I'm writing, however, after extensive research the only way I found is through ...
0
votes
1answer
436 views

Including all post id's of a custom post type into an array

For my single.php (products.php), I try to build a navigation via which the user can switch between products based on the meta key "price". I want to put all id's of the products post type into an ...
4
votes
1answer
2k views

How To Set Custom Post Type Title Without Supports

So, I asked this question differently in another thread but it was more of an advice type question so it really didn't render any useful responses. I believe I can word it better and should help some ...
0
votes
0answers
19 views

Next_post_link not working when I try to change text

I am using the following code to navigate through posts within a custom post type. Which is working absolutely fine. <div class="prev-item"> <?php previous_post_link(); ?> ...
3
votes
1answer
785 views

Random post, once per day

I have a custom post type 'quotes' and I would like to display a random entry on the homepage each day. This is the code I currently have to display the content: <?php query_posts( ...
0
votes
3answers
1k views

Saving Custom Post types and fields to a custom table

I have a project in which I am trying to import a large amount of data into a WordPress installation and from that data, create pages on my site (as a custom post type). Since these pages will be ...
1
vote
2answers
2k views

Displaying Meta Box Image

I have some problems displaying info from my custom meta box in my custom post type single. I'm using Reusable Custom Wordpress Meta Boxes by Tammy Hart. I'm able to display the textfields using ...