Articles of custom post types

Custom Taxonomy Terms in Menu lead to which page?

Hello All I was wondering if someone could help me out. I have created a custom post type along with a custom taxonomy. In this custom taxonomy I have created custom terms through the wp dashboard. I have added these terms to my Nav menu when I click on these terms in goes to a […]

Display post from custom post type

I have this Custom Post Type (CPT) defined at functions.php: register_post_type( ‘opinion’, array( ‘label’ => __( ‘Opiniones’ ), ‘singular_label’ => __( ‘Opinión’ ), ‘labels’ => $labels, ‘public’ => true, ‘publicly_queryable’ => true, ‘show_ui’ => true, ‘menu_position’ => 2, ‘hierarchical’ => false, ‘rewrite’ => array( ‘slug’ => ‘opinion’, ‘with_front’ => true ), ‘has_archive’ => true, ‘query_var’ […]

Running a custom query inside another cpt single and trying to grab a variable

I made a cpt “Neighborhoods” for different neighborhoods. On the Neighborhoods archive, you click on one and go to the single. All good. an example url is /blog/neighborhoods/south-austin/ But I’m trying to run a wp_query on that single looking for all properties in that are in that neighborhood. I created a custom taxonomy called “prop_neighborhood” […]

White screen error for a custom theme

I have created a theme for one of our clients using bootstrap framework! When i was working on it on Localhost it works Correctly, but when I Uploaded it doesn’t work. When I Activate it from Appearance I Saw A blank white Page; Also when I Try to Post a new Comment, post, page or […]

Add data to post edit page, when post is published

I need to customize the “post edit page”, for a custom post_type, but to keep things simple let’s say it’s on the post_type post for now. When the post status is published, I need to run a PHP script that fetches some data from my database, based on the post_id of the current post. Question: […]

Best way to create a search for custom post type by custom field values

I have a custom post type called people. I want to have 3 search fields for; first-name, middle-name and last-name I was thinking about creating a page with my own search boxes and use query_posts: <?php query_posts( array( ‘post_status’ => ‘publish’ , ‘post_type’ => array( ‘people’ ), ‘meta_query’ => array( array ( ‘key’ => ‘last-name’, […]

add custom tags for custom post type in wordpress

I have many custom post type and I want two of them to be relate by tags. These tags are only useable to these two custom post type only. like I have two custom post type 1. books 2. writer and I want these two post type have custom tag which only usable to these […]

Hide text if query has no posts

I’m using a custom query to display events CPT inside another CPT. The given query has a section title, which I don’t know how to hide when there are no events. I’ve tryed to include the section title inside the This is the code: <!– EVENTOS –> <div class=”container”> <div class=”row”> <!– Section title I […]

Easy reading or transfer of data from posts?

Plugin usually transfer data using code like [espro-slider id=21] , is there a short way to read it or do they use regex to read it. If not is there a short way to define variable in post and use it directly in back-end. I am trying to read information from post and use it […]

Update ACF fields on a frontend form?

I have the form below to update posts in a custom post type. In my custom post type I have some ACF fields which I also need to be able to update, but unsure how. I can update my default WordPress fields and can call in the ACF field data into the field I want […]