Questions tagged [custom-post-types]

Custom Post Types extend WordPress to support additional content.

Filter by
Sorted by
Tagged with
1 vote
0 answers
14 views

Wordpress Custom Post Type Archive, filter by category and get pagination working

I have created 9 different Custom Post Types via ACF and an assortment of custom field blocks for 8 of them. Those 8 are used to create different content, based on requirements for each post type. The ...
Mitch S's user avatar
  • 15
0 votes
1 answer
12 views

Frontpage overriding my posts

Each time i make a new post I cant see it ok my website when I view it. The front page (which is blank) seems to override my posts. How do I remove it or change the settings
Dineato's user avatar
0 votes
1 answer
37 views

Listing Child categories under another child category

I have a custom post type called "alz-products" under this i also have a taxonomy called "products-category" The arranged category structure to manage products as follows Spill ...
user1419170's user avatar
0 votes
1 answer
43 views

How to make 2 (or more) custom post type post pages sit under the same slug?

I've created 2 custom post types like so: register_post_type( 'resources', theme_build_post_args( // $slug, $singular, $plural 'resources', 'Resource', 'Resources', ...
Freddy's user avatar
  • 147
0 votes
0 answers
19 views

Advanced Custom Fields Custom Post Types Heirarchy

I am seeking some help with Custom Post Types using Advanced Custom Fields Pro. I have created a Custom Post Type (headphones) and enabled "Hierarchical" as explained here: https://www....
Bec's user avatar
  • 1
0 votes
0 answers
8 views

How to fetch WordPress Gallery Images to a Custom Post Type?

I am using the WordPress Email Contact Form plugin to create a custom contact form. I want to be able to fetch images from the WordPress gallery and display them in the contact form. I have tried ...
Muhammad Usman Qureshi's user avatar
0 votes
0 answers
8 views

Category display using conditions

I have a custom post type(events) created and has taxonomy(event-categories) with parent and child categories. Since im not good in coding, i will try to understand all the help from here. So what im ...
Bordzee's user avatar
0 votes
0 answers
17 views

how to properly format custom post type rewrite to get specific URL structure for archive and post views

The goal I created a custom post type for events listing and want to achieve the following URL structures all archives url This url returns 404 error https://example.com/events-list/ single archive ...
Nadal's user avatar
  • 89
0 votes
1 answer
40 views

Wordpress custom post type -> query and sort by custom field with multiple values, then published date

I have a custom post type with 2 custom fields that I am trying to sort by: The first custom field is "featured post" (yes or no values). The second custom field is "CPT images ...
Mitch S's user avatar
  • 15
0 votes
0 answers
9 views

A theme has 3 default types posts, services and portfolio in its posts grid.I want to add my custom post type products How can I achieve that?

Here it display the dropdown list of options to be displayed in asri post grid. I have made my custom_post_type Our products which I want to be listed here.
Deepika Jain's user avatar
0 votes
1 answer
23 views

Create side bar widget showing list of years as hyperlinks for a custom post type

I have a WP site using Elementor Pro. I have created a Custom Post Type called "Meeting" I have created an archive page for "Meetings" using a Loop Grid To display the post ...
user3067865's user avatar
0 votes
0 answers
10 views

How to display posts from home page in blogs in category wise

actually i am converting html to wordpress and i have posts on home i want to display them on blog page in category wise rightnow my blog page in working on index.php, I have made some post dynamic ...
Mujtaba's user avatar
0 votes
0 answers
12 views

Separate archive template to show posts and CPT by same category/taxonomy

I have archives for posts and another for reviews which are working fine, try as I might though I'm struggling to have a separate archive under the URL /content/[category] that pulls both posts and ...
james's user avatar
  • 1
0 votes
0 answers
16 views

Create an archive page by combining two post type

I wanna create an archive page for both normal posts and a custom post type(gallery). I created an index.php file and put my code in there but its pagination ain't work correctly. all pages look the ...
Poorya Ghorbani's user avatar
1 vote
0 answers
16 views

How to Filter the Custom term loop based on dropdown

I had created on Custom Post Type 'resource', which has 4 taxonomies ('type', 'sector', 'industry', 'rtag') now i had added 45 posts in following manners Type - Brochure, Infographic, Research Paper, ...
Bhargav Joshi's user avatar
0 votes
1 answer
22 views

How to have a hierarchy of custom post types and use two of them in the permalink?

General Setup I'm working on a setup to create a documentary/wiki site for a company. The site should have three different levels of hierarchy and one type of content at the lower end: level 1: area (...
Stephan's user avatar
0 votes
0 answers
12 views

How to show metabox in custom php menu page

I've created a custom dashboard for wordpress and I want to show some custom metabox on it. Is there any way to achive this with a filter or function of wordpress? I've tried using the do_meta_boxes() ...
ICTDEV's user avatar
  • 111
0 votes
0 answers
12 views

Add submenu page to a custom menu page

For a company project I'm fully customizing the wordpress wp-admin dashboard to be the front end after an user is logged in. I need to hide the admin bar for non admin users and add a submenù to a ...
ICTDEV's user avatar
  • 111
0 votes
1 answer
50 views
+50

How to Display Content from Search URLs on Permanent URLs in WordPress?

The search link for a WordPress website looks something like this: https://example.org/?s=seo or https://example.org/?s=blogging. For certain specific pages, I prefer to use permanent links. For ...
Ranuka's user avatar
  • 1,782
0 votes
1 answer
21 views

Wordpress duplicating posts from single loop

I've created a custom post type with ACF custom fields included. The CPT is being placed inside of a bootstrap slider. Everything seems to be working, except, the posts being rendered on the page are ...
Mitch S's user avatar
  • 15
0 votes
0 answers
16 views

author archives, showing all custom post types, problem on pagination

Please, look at the link to the page I need support with. This is a website where several “authors” make their reviews on books or create some original posts. This page shows “Badges” which are all ...
Ioria's user avatar
  • 11
0 votes
0 answers
11 views

How to assign a single-menu-template to a menu-items in a taxony/ cat/ subcat/ subcat-item

Hi hope really someone can assist. I have created a single-meny-template with post-type-meny, and I have created taxonomy, categories, sub-categories and subcat-items. What happens is that the ...
Brango's user avatar
  • 1
0 votes
0 answers
17 views

Disable All In One SEO plugin for custom post type

I am using All in One SEO Version 4.2.7.1 I just added a custom post type using below code- function RK_FAQs_register_post_types() { // Set UI labels for the recipes post type. $labels = ...
Ravinder singh's user avatar
0 votes
0 answers
29 views

Use Custom Field to Display Post Loop

In my custom template I have created a menu which is a row of 10 horizontal tabs. Each tab shows a date which is defined using an ACF datepicker field in the post. I have also created a custom post ...
SavPhill's user avatar
  • 118
0 votes
2 answers
18 views

Exclude multiple custom post types from search

I'm trying to exclude a couple of custom post types from search results. The following works for one post type: // Exclude custom post types from search add_action('init', '...
Glasshalfpool's user avatar
0 votes
0 answers
17 views

Best Approach for Implementing Custom Post Types and Taxonomies for an Events Website?

Hello fellow WordPress developers, I'm working on creating a website for events and conferences using WordPress, and I'm trying to figure out the best approach for implementing custom post types and ...
AkshatLive's user avatar
0 votes
1 answer
17 views

Query custom fields with three dates - start and end does not work

I have tried to make a reservation system for a book a table in restaurant. But, I have a problem when I try to see/ make new reservations in an specific day - in showing me which table are free at ...
Fujitsu09's user avatar
0 votes
0 answers
26 views

Is it possible to go to the next post in the same category?

Is there someone who can help me to change the code so the button goes to the next post in the same category? TaaaaannnnnXXXX <div class="nk-pagination nk-pagination-center"> ...
Jasper Stamm's user avatar
0 votes
0 answers
11 views

How to disallow users to edit other's posts for a new custom post type?

I am trying to add a new custom post type and everything works except one thing - contributors can edit other's post of this post type. Here is how I've registered it: /** * Adding new "Series&...
Petar Vasilev's user avatar
0 votes
0 answers
87 views

Send summary email from a form with wp_mail

I'm trying to send two emails (one to the site manager and one to the user) with the data entered in a contact form made by me and placed in a wordpress template, but this doesn't work. i am using ...
LesCa's user avatar
  • 21
0 votes
0 answers
14 views

How to allow subscribers to create post of a new custom post type

I am working on a plugin which adds a new custom post type and I want all users to be able to create new posts of this type. Here is what I've got at the moment: $labels = array( 'name' ...
Petar Vasilev's user avatar
0 votes
0 answers
25 views

Wordpress display post count for custom post type

I have a custom post type created and a taxonomy with CPT plugin. Using Elementor I created an archive page to show the posts from the taxonomies created. I would like a shortcode to dynamically ...
Cosmin Dan's user avatar
0 votes
1 answer
33 views

Using Query Loop with Custom Post Type

I have a Custom Post Type (CPT) named "Events", and I want to add a Query Loop on my front page that displays the upcoming events that my website visitors may want to participate in. On the &...
mawgumelar's user avatar
0 votes
0 answers
16 views

Media Library empty or only 1 item when invoked from custom post type set featured image button

Custom post type 'offer' is defined in a 'mu-plugin' using ACF syntax including featured image support. Theme functions also explicitly declare featured image support for this custom post type. When ...
Ingo Steinke's user avatar
0 votes
1 answer
20 views

Custom fields disappearing when a custom post type is assigned

I have a custom taxonomy page. This custom taxonomy has a few custom fields to populate it's template. A user is able to assign custom post types and media to this custom taxonomy and then those posts ...
solariati's user avatar
0 votes
0 answers
10 views

A custom field that can search through many other related post types?

It's been half a decade since I tried to make a wordpress site, and in the past I would use Advance Custom Fields to solve a very specific problem I'm about to ask. I want to see if there's a newer ...
John's user avatar
  • 157
0 votes
1 answer
25 views

Can Multisite and Custom Post Types work this way?

I'm running a WordPress multi-site, where i have created a custom post type which have 5 different categories on main site. now i want to display data (posts) of those 5 categories on multi-sites 5 ...
Chandresh Tiwari's user avatar
0 votes
0 answers
8 views

Stripe Button not working on a custom post type template

I have a custom post type of "Properties", I am adding a stripe button on the template on this Property Post Type. But when I click the stripe button, i get the following errors: jquery.min....
Bob Jurgens's user avatar
1 vote
1 answer
19 views

Creating multiple pages from one custom post type entry

I'm looking to create multiple pages from one custom post type. For example, I have a custom post type called "Students" that collects various pieces of information, such as name, email, ...
jbenes's user avatar
  • 11
0 votes
1 answer
27 views

Detach Wordpress Media Files In Bulk

Just switched WP themes and I have about 1300 media files attached to what Wordpress is calling a 'Private Post'. These Private Posts are actually photo portfolios from the previous theme. 200 ...
Elemental Media's user avatar
0 votes
0 answers
12 views

Custom Post Type - how to get video urls to automatically result in embedded video?

I've created a custom post type that mostly follows the same setup as posts in order to more easily manage a particular group of content -- most of those posts will include multiple videos (loaded ...
ScottM's user avatar
  • 45
0 votes
1 answer
35 views

Change formatting of Date parameter on custom post type

So I have a custom post type called "wp_events", and I would like to update this portion: Where is says "Scheduled 2023/11/05 by default, I would like this format: Scheduled November ...
InvestedLabs's user avatar
0 votes
0 answers
23 views

How to Show Standard Post and Custom Post in Same Section at Homepage?

I'm trying to show both my standard posts and custom posts on my homepage. I've got the following code working, but it's causing a 404 error if I assign a custom homepage. If I keep the setting of &...
Ayushvam's user avatar
0 votes
1 answer
32 views

How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?

I have two taxonomies on my site: portfolio works and blog posts. I want blog posts under /blog and I want portfolio items under /work. I have created a page for blog posts and a page for portfolio ...
JugJoe's user avatar
  • 3
0 votes
0 answers
19 views

CPT Rewrite Slug to Another CPT Slug/Key (as CPT-A/CPT-B Format)

I registered multiple custom post types with following pattern: CPT-A: 'has_archive'=> 'cpt-a' and 'rewrite'=> array('slug' => 'cpt-a', 'with_front'=> true) CPT-B: 'has_archive'=> 'cpt-...
Aqsa J.'s user avatar
  • 271
-1 votes
1 answer
28 views

How do I create a custom search function to only show contact information if they search for an exact unique identifier?

I’m hosting a conference in the future and will be collecting several hundred attendee’s names and email addresses when they register on my site. To help with networking and connecting them after the ...
Patmahoney123's user avatar
1 vote
0 answers
19 views

How to change default taxonomy for CPT only (not posts)

I am trying to change the labels of the default category and tags taxonomies for a CPT only. When trying with the code pasted below it works, but it also changes the labels for the default post type. ...
stemon's user avatar
  • 155
0 votes
1 answer
38 views

SOLVED: Shortcode to display Divi project filtered by tag in WP Query loop

I'm creating a template for a custom post type & I'm trying to add a WP Query loop displaying specific Divi projects filtered by tag. I'm inserting the loop using a shortcode, & I've ...
megseoh's user avatar
  • 21
0 votes
1 answer
84 views

Appointment booking system in WordPress

I have to make an appointment booking system with WordPress, I have a custom post type "appointments" with various various custom fields like : Name, email, date, time, office, service... ...
LesCa's user avatar
  • 21
0 votes
1 answer
23 views

Custom Post Types Do Not work on this permalink setting https://somedominaname.com/%category%/%postname%/

If in Permalink settings I use this structure then on default post type this gets applied → https://somedominaname.com/%category%/%postname%/ But on Custom Post Types it is not applied effectively and ...
WordCent's user avatar
  • 1,827

1
2 3 4 5
206