how to put thumbnail below category’s title?
You seem to be generating broken markup by mixing stuff in and out of list item (<li></li>) tags. Try validating resulting markup and fix any errors produced.
You seem to be generating broken markup by mixing stuff in and out of list item (<li></li>) tags. Try validating resulting markup and fix any errors produced.
The posts query is not recursive by nature. And I don’t think that post_parent accepts multiple IDs, so you will likely need to loop and run this for multiple pages or play with query filters to do this in less requests (if performance becomes an issue).
POST does not have parents, but categories. Only PAGE can have parent. So, the question is, what do you want to get? In case of getting POSTS from different categories, just use get_posts and add multiple categories. As for pages, just use get_page_children.
Sorry I deleted my comment because I found the issue. You need to do an html entity decode on query variable. Use the code below. function hey_query_shortcode( $atts ) { extract( shortcode_atts( array( ‘query’ => ”, ‘style’ => ” ), $atts ) ); $query = html_entity_decode( $query ); ob_start(); $the_query = new WP_Query( $query ); … Read more
Ajax handler runs in completely separate instance of WordPress, it has no access to global variable from your pages and such. Basically there is nothing to rewind here, you need to pass those environment variables in request and query for comments from scratch.
did you try this? $custom_query_args = array( ‘post_type’ => ‘casestudy’, ‘connected’ => $post->ID ); $the_query = new WP_Query(); $the_query->query($custom_query_args);
Inside your function, simply do a var_dump of the $request object to reveal its properties.
In your index.php global $query_string; setcookie(‘my_wp_query’, $query_string); or global $query_string; $_SESSION[‘my_wp_query’] = $query_string; whatever you prefer.
I think you’re using wrong keys for meta_query array, also it expects nested arrays, even if you only have one query. Code below should help. $args = array( ‘meta_query’ => array( array( ‘key’ => ‘is_url’, ‘value’ => ‘yes’, ‘compare’ => ‘NOT LIKE’ ) ), );
Couldn’t you use the custom form like this: STEP ONE: Open a Text editor and paste your form content- <?php // Custom Contact Form ?> <div id=”my-ccf”> <form id=”contactform” method=”post” action=”<?php bloginfo(‘template_directory’); ?>/_assets/submitemail.php”> <input name=”user” type=”text” value=”Name” /> <input name=”email” type=”text” value=”E-Mail”/> <input name=”url” type=”text” value=”Website” /> <input name=”subject” type=”text” value=”Subject” /> <textarea rows=”10″ name=”message” … Read more