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

learn more… | top users | synonyms (1)

0
votes
0answers
14 views

Same slug for custom post type archive and custom taxonomy archive?

"Recipes" is a custom post type and "breakfast" is a term of the custom taxonomy "recipe-category". I want to achieve this: www.mysite.com/recipes/my-tasty-recipe = a single post (recipe) ...
1
vote
0answers
17 views

Best method to make posts searchable, sortable and filterable - custom field, tag or category?

I'm wanting to create/modify either the existing post type, or create a new post type to be searchable, sortable and filterable by the following fields: Country from: Country to: Activity: ...
0
votes
1answer
21 views

Two near-identical custom field types - one works, the other doesn't . What can cause this?

I'm using Advanced Custom Fields to add meta information to a custom post type and in ACF I've created two different 'Select'-dropdowns - one is called 'series' the other 'classification'. I run a ...
0
votes
1answer
11 views

Function causing the loop display posting more (empty)

By using the function: add_action( 'pre_get_posts', 'add_custom_post_types_to_loop' ); function add_custom_post_types_to_loop( $query ) { if ( is_home() && $query->is_main_query() ) { ...
1
vote
0answers
18 views

First custom field value (out of several) displayed twice after query

I have the following piece of code, which is based on the solution to this question: <?php $game_titles = get_terms('game'); foreach($game_titles as $game_title) { ...
3
votes
2answers
37 views

Add content in custom post type page after the title and before columns

I found here on WPSE that you can add content before post title in the post page, and in custom post type pages add_action( 'load-edit.php', function(){ $screen = get_current_screen(); ...
0
votes
1answer
36 views

How to check post type (to include custom css)

I need to check the post type. If I put this in my functions file: echo "the post type is" . get_post_type(); the message just becomes: "the post type is". Is the post type checked to early? Do ...
-2
votes
0answers
15 views

Convert Advanced Custom Field (ACF) to Avada as regular posts with all content [on hold]

I am migrating an existing Wordpress website where all content is stored in custom post types with ACFs into a new site running the Avada theme using only regular posts and categories. These are the ...
0
votes
1answer
40 views

Sort results without WP_QUERY?

I am new to coding a WP_QUERY and I tried a few things with it but it doesn't seem to work. Right now (you can see the page here: http://boomerang.mannydesigns.co/artistes/parcourir/musique/ ) I need ...
0
votes
0answers
27 views

How to develop custom URL redirection

I'm writing a custom theme and have a custom post type which represents an external entity (e.g. a website). Hence, I have a field 'external_url' in my post type. Part of the custom post type post's ...
-2
votes
0answers
12 views

How to add a CPT as submenu under another CPT?

I need someone to fix this problem. I have two CPT: 1) register_post_type( 'movies',$args); 2) register_post_type( 'english',$args); How can I use second one as submenu under first one?Could you ...
0
votes
0answers
7 views

Subpage for custom post type not beeing loaded

A week ago I started working with wordpress. My project is to expand a friends website with a section where she can add offers (e.g. guided hiking tours) in a chronical way. Those offers should have ...
1
vote
0answers
26 views

Show custom post type inside a custom post type

I am kind'a new to wordpress and i need some help. I am building a website that contains articles. in each article page i want to show the writer details(image name and short description). I have ...
1
vote
1answer
33 views

Custom post with more than one custom taxonomy

The the code below pulls the 'plan type' taxonomy from the custom post type 'floorplan' and displays the posts accordingly, that works great. The problem I'm having is that it works only when each ...
0
votes
1answer
19 views

Creating a custom post type upon registration

I'm struggling to find the best/quick easy solution to this problem: I have a plugin that creates companies but stores all of the company info as a user so all information is in the user's profile. ...
0
votes
1answer
21 views

Integrating Orbit slider into wordpress through custom post type

I am currently working with FoundationPress, It is a great starter theme loaded with cool features. I would like to create a custom post type called "slides" which will be displayed on the homepage ...
0
votes
0answers
17 views

Dynamic Custom Fields

I am working on a custom invoicing system for a client. I am looking for the best way to implement adding products dynamically to the invoice in the wordpress admin. There are hundreds of products ...
0
votes
2answers
24 views

Display custom post using ID

In my theme, I have a custom post type called sliders. Here the user is allowed to upload images in a meta-box. So, the images are saved as meta data in wp_post_meta table. Now what I want to do is, ...
-1
votes
1answer
28 views

How to make CPT posts to be randomly ordered every single time they are loaded?

I have a website where I have a CPT called ADS. I want them to be displayed at random order for every visitor rather than any specific order based on "date added" or anything else, and therefore ...
1
vote
0answers
13 views

A form that can save/edit after first input

I need a form on my WordPress website that users can input information into through dropdown fields.But i just dont want the information to go away after sending.I need them to still be able to come ...
0
votes
0answers
17 views

Strange issue with custom fields not showing data for certain posts but working fine on others

I have a very strange issue with custom fields on my site. I am using the custom fields for custom post types. So lets say the custom post type is called "cars". I will have various custom fields like ...
-2
votes
0answers
18 views

Generate pre-built visuals with Post text

Anyone can give me a hint: I need to have on my website a "Generate Visual" button - that will take my post text and give me several different templates where I can make visuals of. Explanation: I ...
1
vote
1answer
39 views

How to get custom posts sub category link

I'm trying to echo custom posts sub category link as a view more option.For the last week, i am trying to do that, but i just can't find the right way. I've tried, category links, terms, with args, ...
0
votes
1answer
13 views

What happens to my older posts if I switch to a child theme?

I have a theme that has one custom post type. I want to mess with its templates and styles.css file. What happens to my older custom posts in case I switch to using the child theme. Do they vanish?
1
vote
0answers
35 views

wp_reset_postdata() and wp_reset_query() inside shortcode are not working to reset original page query

I'm implementing a form for a frontend post with a shortcode. The form is processed in the same function, reloading the page: function adicionar_ninhada(){ $user_id = get_current_user_id(); if ...
0
votes
1answer
26 views

Show my custom post id if a country or ip

I explain. When a user wants to see the country come my website, for example my url: my-post-example.html I would like to capture the id and display content with the template, etct I have done in ...
1
vote
1answer
30 views

How do I Use Nested Loops of Custom Post Types for MultiSite Blogs using WP_Query()

I'm using the code from miguelpeixe's 'WordPress Query Multisite' in order to create a custom loop for my WP Multi-site's 'child sites.' Within this loop, I want to nest another loop that will pull ...
-2
votes
1answer
20 views

What is the code for showing Custom Category and Subcategory Page?

hello We have categories and subcategories like this : - Category 1 -- SubCategory 1 -- SubCategory 2 -- SubCategory 3 - Category 2 - Category 3 I have one style for all Categories **level 1** and one ...
1
vote
0answers
21 views

Custom while loop for hierarchical display of a taxonomy

I'm trying to build an automated mega menu that loops through all product-category terms and displays them in a hierarchical underscored list, as well as including post in each term. For example, ...
0
votes
2answers
40 views

Pagination in plugin with custom post type

I have several custom post types (created through CPT UI plugin). I want to display posts from these post types on my page, for example "News". I've created a page and inserted in it shortcode ...
0
votes
2answers
35 views

the_content() stop images being pulled through

I have created a custom post type to pull through the date, title, thumbnail and content, some of the posts have images and the_content() is pulling through those images and I don't know how to stop ...
0
votes
0answers
19 views

InDesign to Wordpress [on hold]

I need to be able to import from InDesign to wordpress Post/Custom Post Type content without losing headings,tables. There is a client that uses InDesign to write his book, and now wants to use ...
-1
votes
0answers
24 views

Wordpress custom post loop for slider

I am writing the looping within the slider, slider will look like double slider , The second a tag inside li comes below : ...
2
votes
0answers
14 views

Custom Taxonomy's Label to change the text appearing in Appearance > Menu

I have three custom post types, each has its own taxonomy like product_cat, event_cat, media_cat. I labeled all of them with the word "Category" like: register_taxonomy("product_cat", "product", ...
0
votes
1answer
25 views

Set up a Child/Parent relationship with a Custom Post Type

the issue I'm having is I want to set up a custom Wordpress site to manage a single webcomic. However, I found all the existing Wordpress online comic management plugins do not do what I need it to ...
0
votes
1answer
45 views

To use custom post types, or not to use

I have in the past few years done more and more development in Wordpress and would like to get some feedback about custom post types/taxonomies. What are the pros/cons of using custom post types, ...
0
votes
1answer
26 views

Get Post content in another file?

I am working on a plugin .I have a custom post type team.Custom post has four posts of different categories.I used this code to send post id of each using ajax. $(document).ready(function () { ...
0
votes
1answer
28 views

Url to archive page for custom post type

I made a custom post type , and an archive page for the post type. I don't know if there is a url where I can access this archive page? I would like to have a page where all the "posts" (products) for ...
0
votes
0answers
23 views

How to add id to custom post type taxonomy term slug?

For example, if custom post type taxonomy is "cpt-category" and term is "cpt-term-11", I would like to show and link like this(*123 is term id) /cpt-category/123/ instead of ...
1
vote
1answer
32 views

Shortcode for CPT post content in a page

I use the Wiz theme along with a plugin I'm coding. The Wiz theme comes with Visual Composer bundled and theme options for pages (header, sidebar, footer and the like). However those options are ...
0
votes
0answers
19 views

Restricting access in the admin area to allow creation and editing of just one Custom Post Type

Lets say I have a normal WP installation that has posts, pages etc. Lets then say that I added a few Custom Post Types (via functions.php not a plugin). Lets say one of the CPT's is called 'drinks'. ...
0
votes
0answers
23 views

Allow Admin to edit Custom User Role Custom Post Type posts

I have created a Custom Post Type of 'Listing' so that users can add listings by signing up to the website. I have also setup a Custom user role of 'lister'. So, each user (lister) can sign up to the ...
0
votes
0answers
24 views

Custom Post Type Pagination - Pagination seems linked to amount of standard posts [duplicate]

I am having a strange issue with pagination of custom post types, the pagination works but will only paginate up to the maximum number of standard posts. For example: I have 10 'operator' posts and ...
0
votes
0answers
27 views

URL rewrites with two post types

I have two post types: car and parts. Now I would like to be able to rewrite the url slug for parts bit differently. Right now it is like this: mydomain.com/parts/some-part-post-slug And for cars it ...
1
vote
0answers
10 views

Removed custom post type slug but not working for child pages

There are many discussions going about to handle child pages for custom post types were the custom post type slug has been removed. This results into an 404 because Wordpress can't match a valid ...
0
votes
2answers
50 views

The loop seems stuck to a single (now deleted) post

At first I thought it was an ACF problem, but printing some values helped me to find out that somehow my Loop seems stuck on a single post, but only when some fields are concerned. To sum up my ...
0
votes
2answers
29 views

Post format or Type for List Type Posts

I want to create a post type / format where I can create list type posts... For example... h1.Title: The List Post Title like "Best Salads..." - Intro paragraph h2. Best Veg Salads - Intro -- h3. ...
0
votes
2answers
36 views

Change permalink structure for custom post type

I have 2 custom post types: software and hardware. For SEO reasons I would like to have the permalinks of single software and hardware pages like: https://domain.com/custom-post-name/ But as ...
-1
votes
0answers
20 views

'Gravity Forms + Custom Post Types' plugin map Multiple Fields Into one meta_key field as array values

we're using Gravity Wiz's awesome plugin 'Gravity Forms + Custom Post Types' plugin. Specifically, we're using this as a way to provide front end custom post type creation/editing on the front-end for ...
0
votes
0answers
17 views

“Trash”, “Draft” and count not showing for custom post type in admin panel

I have searched the internet and have also found some questions here with similar problems, but mine seems to be different. I have created a custom post type, and neither can I see the "Draft" and ...