I don’t quite get why this isn’t working. I’m trying to use the following to only show posts from the current year on the front page: <?php query_posts( "&year=$current_year&order=DESC");...
I am trying to to use $wpdb to retrieve a list of posts from the Database where the meta_value in the wp_postmeta table contains the current post_ID in inverted...
For testing purposes I have edited page.php to have nothing other than: <?php while ( have_posts() ) : the_post(); ?> <h1><?php the_title(); ?></h1> <?php $site_options = get_fields('options'); ?> <?php...
in the search box I would like visitors to be able to search for more than one location (houses). The code right now is: <div class="col-md-3 col-sm-6 col-xs-12"> <label...
I feel there is a red button saying “Do not press” below query_posts(). For some time I am trying to demystify this phenomena with very low success to be...
I use Advanced Custom Fields and have a custompost-type “matches”. This post-type contains two fields “goals-made” and “goals-against”. I want to query wordpress to show only the matches that...
I know the main query is fast, since it gets data after parsing the URL and after WP_Query has been instantiated. We are in OO PHP. But is query_posts...
I had used the ZD Video Plugin for WP a long time, and now, since my move to WP 3.0.2, it doesn’t work anymore. To embed a YouTube video...
I used remove_shortcode(‘gallery’); …the gallery is gone, but the shortcode is visible in the text. How do I remove sitewide? I’ve searched for sql queries, but no solution fixes...
I am running a custom query below each post, to get other post from its category. Now I want to exclude the current post. This is my Query: <?php...