Display child page on parent
The problem was only with one set of parent-child. Deleting them and recreating the page solved the issue.
The problem was only with one set of parent-child. Deleting them and recreating the page solved the issue.
What if you save each query in a variable ? <ul> <?php $query1 = query_posts( array( ‘posts_per_page’ => -1, ‘post_type’ => array(‘specialties’) )); if($query1->have_posts()): while($query1->have_posts()): $query1->the_post(); ?> <li> <!– title from post type specialties –> <p><?php the_title(); ?></p> <ul> <?php $query2 = query_posts( array( ‘posts_per_page’ => -1, ‘post_type’ => array(‘team’) )); if($query2->have_posts()): while($query2->have_posts()): $query2->the_post(); ?> … Read more
Very Simple Code Snippet for Creating Taxonomy for Custom Post Type Register Custom Post Type function Knowledge_base_init() { $labels = array( ‘name’ => _x( ‘Knowledge bases’, ‘post type general name’, ‘your-plugin-textdomain’ ), ‘singular_name’ => _x( ‘Knowledge base’, ‘post type singular name’, ‘your-plugin-textdomain’ ), ‘menu_name’ => _x( ‘Knowledge bases’, ‘admin menu’, ‘your-plugin-textdomain’ ), ‘name_admin_bar’ => _x( … Read more
If you want to put PHP code in the editor you need a plugin, same goes for display-posts. Display Posts shortcode isn’t a built in function. https://wordpress.org/plugins/display-posts-shortcode/
do you have a hand coded theme? A while ago I did a theme for a friend and insted of any plugins, costum post types, etc. I created a page manually and made a sign up form. This is how my form was set up: START OF PHP CODE! $to = ’[email protected]’; $subject=”Your desired subject”; … Read more
Yes, it is good, but other options are also good. There is no silver bullet in term of webservers and caching software, if there was everybody would have been using the same tools. It depends both on what are your actual needs and how comfortable are you with managing the tools. For example it might … Read more
You can’t directly use sendTrailer.php ,wordpress can’t find this custom page directly so you have to specify fully path of that page using get_template_directory() In your ajax function write url : ‘<?php echo get_template_directory(); ?>/sendTrailer.php’
php file add the following code snippet <?php get_header(); ?> <?php while ( have_posts() ) : the_post(); ?> <?php the_title( ‘<h1>’, ‘</h1>’ ); ?> <?php the_content(); ?> <?php endwhile; // end of the loop. ?> <?php $post = array( ‘post_type’ => ‘post’, ‘order’ => ‘ASC’, ‘post_status’ => ‘publish’ ); $loop = new WP_Query( $post ); … Read more
If you are using a custom loop. Please use $query->post to get the post object.
It was a bug in WordPress. Please see this track ticket #21581 for details.