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

learn more… | top users | synonyms (1)

0
votes
1answer
24 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 ...
0
votes
0answers
13 views

MCE Editor button to list posts and return their ID

So you know how in the editor, if you highlight some text and click the link button (chain) you can either enter in a URL or select a post from wordpress it self? And clicking submit would wrap the ...
0
votes
0answers
14 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
18 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
24 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
23 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
34 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
33 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
24 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
25 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
44 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
44 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
21 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
40 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 ...
4
votes
2answers
17 views

How can i avoid the permalink start with 'blog' while using the custom post type?

I used the custom Structure /blog/%category%/%postname%/ for blog. also i have a custom post type named 'FAQ' while viewing the faq posts, it is showing the /blog/faq/%faq_category%/%postname%/. When ...
0
votes
1answer
36 views

Posts per Page on custom Taxonomy Template

I'd like to show 20 posts on my custom tax template, using this filter: function customize_customtaxonomy_archive_display ( $query ) { if ( ( $query->is_main_query()) && ( is_tax() ) ...
0
votes
1answer
27 views

wp_publish_post breaks permalinks

I'm creating a system, where some custom post drafts are being prepared, and after certain actions taken by moderators it is being automatically published. So, first I create post draft like that: ...
0
votes
1answer
54 views

Timber plugin (Twig) does not show custom type posts in index page [closed]

Timber does not show custom type posts in index page. index.php: $context = Timber::get_context(); $context['posts'] = Timber::get_posts(); $context['foo'] = 'bar'; $templates = array('index.twig'); ...
0
votes
2answers
37 views

How to display custom post type ordered by a custom field date

I have a custom post type for a timeline activities. each post of them has a custom field type of DATE. field name :activity-date I'm using TYPES plugin for Custom Post Type and Custom Fields I ...
0
votes
0answers
24 views

How do i append custom query results with default search query

I want to search my custom table along with default search Example: Table: sah_post Columns: ID, sah_id, title, slug, content, status, created_timestamp, updated_timestamp. Default wordpress ...
0
votes
1answer
38 views

Show related posts based of current ACF field name in a single page post (a loop within loop)

I have a single page where I display my current post. Within the post loop, I wanna display another loop inside that shows 3 other related posts by title that share the same text as the current post ...
0
votes
1answer
39 views

Post data in separate divs with incrementing class using WP_Query

I'm trying to achieve this result (which is the static HTML) and this is what I've gotten so far. Below is the approach I've taken: Created a CPT for 'locations' Created a custom taxonomy 'region' ...
0
votes
0answers
20 views

Show Taxonomy content

I've created a Taxonomy called Collections and also have a custom post type called products. I want to show the top 3 categories on the homepage and then when you drill down into each collection ...
0
votes
0answers
24 views

How to add validation / error message while add/edit custom post

I am trying to add error message on custom field in custom post save action But my validation not working. Check my code below. add_action( 'save_post', 'save_event_meta_data' ); function ...
0
votes
0answers
29 views

Custom taxonomy URL throwing 404

I have a site that I inherited. It uses a custom post type(products) with a custom taxonomy(product_categories). http://430designs.com/sisco/our-products/ If you go to the page, I am printing out ...
0
votes
2answers
30 views

Displaying taxonomy icon outside archive page

Here is my problem. I'm working on a video website and we have different categories for each video. We have setup a custom post type called "videos" in which we use the different taxonomies to ...
1
vote
0answers
23 views

Added Custom Post Type and the View Option Doesn't Work

I would like some pointers on fixing the Permalinks structure for a custom post type I added. Like many Custom Post Types this plugin uses the Custom Type Meta Box, and sets a featured image. All of ...
0
votes
1answer
26 views

Add taxonomy to already registered custom post type

I want to add taxonomy to already registered custom post type. Is it possible or I have to delete and create that custom post type again??
0
votes
0answers
22 views

Assigning Terms in Taxonomy to Custom Taxonomy

I had a site with posts, in which I exported posts and imported those posts as a CPT (Junior) in my localhost installation. For doing this, I opened the .xml file (export file) and replaced every ...
0
votes
1answer
28 views

Array to string conversion error when trying to POST multidimensional array

I am getting the following error notice: Array to string conversion in /path/to/wp-includes/class-wp.php on line 281 I have a form that is for frontend submissions to create custom post type posts. ...
0
votes
2answers
47 views

Slider from custom post type

I am making one custom slider where admin can add slider image from back end. I am doing it with the help of custom post type. function.php // Custom Post types for Feature project on home page ...
0
votes
1answer
37 views

Custom Post Type Archive Links Not Working

I have multiple custom post types set up. I've been through this process many times, on many sites and have never once had a problem with it. The post type is registered as 'glossary'. The archive is ...
2
votes
2answers
174 views

Why declare $post globally?

I'm new to Wordpress development and am seeing examples everywhere that have a line to declare the $post variable explicitly via: global $post; But I've tested my uses without that line and it ...
0
votes
0answers
16 views

Custom posts permalinks for same post name posts

I have an events custom post created on my site. Most of these custom posts are doomed to have the same post name, because I will have the same event name on a different date. For example, I have ...
0
votes
0answers
17 views

Displaying Custom Post Type on Page with Same Title

I'm building a sports blog. I have a custom post type called conference. Each conference post contains HTML that is displays the team logos horizontally on my team custom posts as shown in the ...
0
votes
1answer
24 views

List custom post types in metabox

Is there a function to list all custom post types in a metabox? I have wp_list_pages( $args ); to list the pages in metabox but now I need also to list all custom post types. Thanks for advices
0
votes
1answer
86 views

Selecting posts older than the current Unix epoch timestamp

I am trying to perform the following query, which originates by the fact the post's 'date' and 'time' are entered as separate custom fields. $args = array( 'post_type' => ...
0
votes
1answer
29 views

Limit number of posts under a post type?

I'm building a plugin that registers a custom post type. I'm looking for a way to limit the number of these types of posts at which point the user can no longer 'Add New' posts to this post type. Is ...
0
votes
2answers
63 views

Problem with wordpress query on page using custom fields

I have a website with the custom post type sammenligne, along with some customfields made using Advanced Custom fields. I have modified an archive site (archive-sammenligne.php) which displays the ...
0
votes
2answers
39 views

Redirect Custom Post Type after user submits update

I have a function for a custom post type that redirects NEW posts to a specific url after they are submitted by users: function tribe_redirect_after_community_submission( $wp ) { if ( isset( ...
0
votes
0answers
26 views

Querying and Ordering Hierachical data

I am developing a WordPress site that requires the display of song lyrics. Here's the archive data that needs to be displayed: [Released 2014] - Album Title [Track 1] - Song Title [Track ...
0
votes
1answer
35 views

Where is the sticky post option?

So I finally need to include sticky posts in a theme but it looks like the feature is gone. When I create a new post, and click "visiblity", the sticky option is missing. I checked a couple other ...
-2
votes
1answer
44 views

Pagination not working

I am using the following code for pagination but its not working .Please help me out and tell that what is it that i am doing wrong <div class="isotope"> <?php $paged= ...
0
votes
0answers
14 views

How to publish custom post type for custom role user and not “submit for review”?

I've created a custom post type 'openproject', where i set capabilities. function custom_post_openproject() { $labels = array( 'name' => 'openproject', 'add_new' => 'Add new ...
0
votes
1answer
23 views

How to Display the tag content of Custom Post?

I have a custom post called "Portfolio" whith the taxonomies: - Categories - Tags (tag clouds) I want to show the Tag content inside the custom post. Thanks.
0
votes
0answers
21 views

Permalinks using event date (year & month) instead of publication date

The site http://www.bikefun.org is live and working, but the permalinks are not quite right. It is an event calendar site. Events are stored as a custom post type "bf_events", with dates stored as ...
0
votes
1answer
69 views

New WP_query in template not working with CPT+category on some pages

I have three page templates, homepage, documentary, and corporate, each using the same CPT WP_query code with only the category name changed for each respectively. The homepage works fine, pulling and ...
0
votes
2answers
89 views

Custom Post Type with Nested Taxonomy and Template Files

I have a custom Post Type of "Portfolio" with a rewrite slug of portfolio. So the URL on the frontend is: domain.com/portfolio. I have a custom Taxonomy of "Categories" with a rewrite slug of ...
0
votes
1answer
69 views

Has register_post_type() changed for WordPress 4.0

I know it's easy to blame the system update rather than user error, but I thought I would double check if anyone else has been running into the same issue! The following register_post_type() has ...