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");...
  • May 12, 2022
  • 0 Comments
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...
  • May 11, 2022
  • 0 Comments
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...
  • May 11, 2022
  • 0 Comments
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...
  • May 11, 2022
  • 0 Comments
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...
  • May 11, 2022
  • 0 Comments
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...
  • May 11, 2022
  • 0 Comments