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

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

custom post type URL change

At the moment, the urls for my movies post type look like .com/movies/ryi2NKR5ZY4DCNWG0XPj/ I got the 20 character hash in there by making the post name the hash like this: function ...
0
votes
0answers
10 views

Rewrite url for two custom taxonomy of one custom post type

I have a custom post type 'courses'. To this custom post, I have two custom taxonomies. - course category(slug is course_category) - other category(slug is other_category). I want to display the ...
0
votes
1answer
13 views

Main site single-property.php design, as homepage of a multisite

I've been researching how to do this for some time now, and I'm coming up short. I have my main blog, example.com, which we've created a custom post type of Property. I'm needing the exact layout and ...
0
votes
0answers
9 views

How to require match for all arguments passed in URL?

I'm developing a site for a small car dealership with a proposed URL schema of domain.com/vehicles/<manufacturer>/<vin>. The Problem I can't get Wordpress to correctly handle when URL ...
0
votes
1answer
18 views

Copy custom field value to post title

I used the code found here. However, that does not update the title field until you open the post and hit Update button both via the back and front-end. I tried changing "save-post" hook with "...
-2
votes
0answers
18 views

Get Posts ordered by a date custom meta field

I have created a meta field for a custom post type. This is a date field that will always be YYYY-MM-DD. There could be 100s of posts so i cant query them all and sort afterwards. I need to be able to ...
0
votes
0answers
8 views

Custom post Type search gives wrong results

i created custom post type for properties . there are 7 entries for Wendy's properties . when i search Wendy, it displayed all results related to Wendy's.when i type Wendy's , it display 3 results ...
-1
votes
1answer
17 views

Looping through Awesome FAQ in Template

I have the Awesome FAQ plugin on a site with custom built templates. I have an faq template that I built and it contains a section that should be repeat per question and answer. The normal WordPress ...
0
votes
1answer
11 views

CPT defaults to single.php?

This is more of a clarification question, but if I don't have a single-CPT.php script in my child theme, then will all my CPTs default onto single.php? I am just wanting to clarify more than anything. ...
-2
votes
0answers
15 views

How to use Google Experiments to test custom post types without showing multiple versions of same piece of content in lists?

I'm trying to use Google experiments to a/b test some custom posts (courses in this case). Everything works ok with the setup, but how do I prevent both versions from showing up in a product (e.g. ...
0
votes
1answer
29 views

Custom post type and taxonomies structure

I am looking for having custom post types and "categories" (limited, known, and just only one) for post. I want the following URLs: site.com/cpt (archive of all the posts inside custom post type) ...
1
vote
1answer
25 views

How to create Blog Post Specific Widget

I want to create widgets which will display based on post. I have considered the option of creating a widget post type using Advanced custom post type plugin and populate this widget while writing ...
0
votes
1answer
28 views

DIsplaying URL of custom field in last post of certain taxonomy && post type

So, I need to echo the URL of a custom field from the last post published in a certain post type and with a particular taxonomy. This code so far works OK, but even that numberposts = 1, $...
-3
votes
0answers
15 views

How I can transform a post type to a WooCommerce product?

I have a custom post called Service. I wonder if you can make that custom post a product of WooCommerce, add it to the cart and do everything else that can be done with a product of WooCommerce.
1
vote
1answer
18 views

Unable to get post archive link

I'm extending the Fall Wordpress theme by using my own child theme. One of the things I'm trying to do is to make an archive page for the 'service' custom post type. That type is defined in the parent ...
0
votes
0answers
22 views

Save custom field as 0000-00-00 00:00:00 (date) to meta_value in Wordpress

When I create a custom post type with custom field, how do I write to meta_value in database in int (0000-00-00 00:00:00) format instead of unixtimestamp?
0
votes
1answer
18 views

Warning: Invalid argument supplied for foreach() in post.php

Just moved my site to another server and now I get this error: Warning: Invalid argument supplied for foreach() in /home/menta/domains/land.menta4u.co.il/wp-includes/post.php on line 1172 On ...
0
votes
1answer
12 views

Get the link of the first post of a custom taxonomy in a custom taxonomy list

Currently, I'm doing this using a custom field, but I would love for this to be automatic. Basically, I have a page that will list all the entries of a custom taxonomy, but I want the links of the ...
-1
votes
1answer
31 views

How to string lines from the_content() hook in WordPress?

Inside my content-video.php template, I have the following codes: <iframe src="<?php echo get_the_content(); ?>" width="960" height="540" frameborder="0" allowfullscreen="allowfullscreen">...
-4
votes
1answer
16 views

ACF select box css color change

i have a trouble with Advanced custom post i try to add select box "K dispozicii is "free" and "Obsazeno" is "occupied" and i need to change colors green for free, red for occupied here is the code ...
0
votes
0answers
16 views

Custom single post pages not using single-template even after flushing permalinks

I have moved my site from a local server to production however my theCommunity custom post types are not using single-theCommunity.php template. I have also tried flushing permalinks as recommended in ...
0
votes
1answer
20 views

Displaying Wordpress Parent field in child post

I want to display the title from a parent field within a single child post (these are custom posts created with wp-types). At the moment, all I seem to get is the title of the current post, and not ...
0
votes
1answer
15 views

ACF in wordpress

Hi i have a slight problem when making a custom post type widget. The problem is that when i want to get the field i want to use in a inline style it doesn't work. This is my code: class ...
0
votes
1answer
15 views

Custom post type in Custom widget - $listItem

Hi i have a slight problem when making a custom post type widget. the problem is that when i add a custom field in the code the part that shows the custom field information get's on top of the output ...
0
votes
0answers
24 views

Custom post type taxonomoy template is not showing more than two post

I am trying to make a page on a custom post type(new_arrivals) taxonomies (sieraden, trouwringen, horloges) template. I have made the template taxonomy-new_arrivalstype.php like this. Inside I add the ...
-6
votes
0answers
41 views

IE 11 & Edge Adding Empty Paragraphs in Editor [closed]

UPDATE: I've bandaged this by using the following jQuery to remove paragraph tags with   inside of it, however, I am still searching as to why in the editor additional line entries are being ...
0
votes
0answers
25 views

When will they make it possible to exclude post types from an wp_query?

Very simple, when I am setting up the arguments for an wp query, I can't exclude post types. While it is possible to include them, I would love to see an excluding possibility. Is there any ...
0
votes
0answers
15 views

How to display wp_post by custom field value?

How to display post seaching by custom field value. Is that possible to reach custom post using custom field value from URL directly?
0
votes
1answer
19 views

Query events post type after current date and timezone

So I am making changes to a clients website and currently they have an events post type with some custom fields that allow them to set an events end date/time and the events timezone. The custom ...
0
votes
0answers
16 views

Changed Post Type Name and Taxonomy Name. How to change it in Widget as well?

Hope someone can explain me how to update the widget to the new post type name and taxonomy name. My Old custom Post Type Was "aps-products" and new is "phones" and my old Taxonomy Name was "aps-...
0
votes
0answers
17 views

HTML email template using custom post type on genesis framework

I'm trying to generate HTML emails using a custom post type. What I would like to do is slot content from post type post into this template to build an editoral newsletter. The problem I'm having is I ...
0
votes
1answer
16 views

Add post type pages with plugin

Can I add the archive and single page for a custom post type added by my plugin? I know it will only have to be a best guess with contents like: <?php get_header(); ?> <h2><?php _e('...
0
votes
0answers
14 views

Getting URL from changing custom post type

I have a manually-built secondary navigation with a button that links to a Current Exhibiton custom post. For obvious reasons, the current exhibition post changes over time. How can I manage to ...
0
votes
0answers
19 views

Change the url of a custom post type to include taxonomy

I'm trying to create a custom post type where there will be a lot of identical post names, but they will have different taxonomy values. Is it possible to define a slug mode where the taxonomy ...
0
votes
1answer
23 views

WP_Query Custom Post Type if Category ID Equals

I've setup a custom post type "slides" and I've created two categories for the slides custom post type: "slides-testimonial" (id = 7) and "slides-regular" (id=8). I would like to run a single loop, ...
0
votes
1answer
13 views

Adding/Changing Functionality of Custom Post Type Main Admin Page

I've created a custom post_type plugin. I would like to add a custom filter to the main list page that is displayed when you first click on the menu item in the left-hand menu (see image). But, I ...
0
votes
1answer
19 views

Programatically inserted posts not showing in Posts Table

I'm trying to insert a custom post through a form. It's a brief post, most content are custom meta fields updated with add_post_meta. So far, post inserting is working fine, except for a detail. This ...
0
votes
0answers
31 views

Custom Meta Box Image Gallery Not Saving

I'm having an issue of a custom meta box I'm building based off of WooCommerce's Product Gallery meta box. The meta box is not saving for some reason. I've tried some options from many different ...
0
votes
0answers
26 views

Form to custom post type and custom taxonomy 2

Following on successful addition of custom taxonomy with a great help here I've been banging my head on the following three things. How would I add another taxonomy "trademen-category"? How would I ...
0
votes
0answers
15 views

Issue with temporary link on the frontend

I have a site working with a custom post type (Exhibition), and custom taxonomies (Exhibitions -> Current, Future & Past). When I display the archives for the Future and Past taxonomy values, it ...
0
votes
1answer
32 views

Form to custom post type and custom taxonomy

I am actually learning still. so if my question sounds a bit silly. kindly pardon me. But I seriously need help here. Using the links below, I managed to get the form working to the extent that it ...
-2
votes
0answers
24 views

How to create an inquiry form in Wordpress [closed]

I am currently working on creating tour theme for wordpress. I am looking for ways to create an inquiry form that visitor can submit inquiry. After visitor submit the inquiry, it will - ...
1
vote
1answer
39 views

Custom template for post type not working

I have a post type shopping and in my single.php I am trying to get a certain template for this post type. So I did: \\ in the single.php get_template_part( 'template-parts/content', get_post_format(...
0
votes
1answer
19 views

Custom Post-Type not in admin menu

As I'm working on a private and custom theme for my website, I created custom post-types for different kinds of data i want to display (and adding extra data with custom fields). Anyways, as I ...
0
votes
1answer
44 views

Running get_posts within get_posts to get children of children

I have a hierarchal custom post type called “courses”. When you arrive on a course post there’s a check to see if the post has children. If the courses post has children it runs get_posts to display ...
0
votes
0answers
13 views

wpDataTables Front-End Editing with Custom Post Types [on hold]

Has anyone used wpDataTables front-end enditing with custom post types? It seems as if it might be impossible for this to work because wpDataTables can only update one table at a time, and custom post ...
0
votes
1answer
6 views

Show index and not the archive for “Dog Custom Post” with default slug

When creating a Custom Post, in my case with the name dogs and slug dogs, at the url www.example.com/dogs Wordpress shows by default the archive page if has_archive is set to true I don't want to ...
0
votes
0answers
17 views

Can't show post based on different level taxonomy

Custom post type : book Custom taxonomy : genre I have created some genre and I want to show immediate children genre of a specific genre. I have used following query $p_query = new WP_Query( ...
-1
votes
0answers
20 views

Send user notification email containing post meta

I created a custom post type using the Custom Post Type UI Plugin and some custom fields using Advanced Custom Fields Plugin. I am trying to send a notification to the admin using "...
-1
votes
0answers
27 views

How to Modify Archive Page for Custom Post Type?

I have created a video post type for a new project on my blog using CPT UI plugin and it's working maybe not perfectly. I've followed the tutorial on WPBeginner. To make http://babsreviews.com/video ...