Support » Plugin: Easy Query - WP Query Builder » Display url parameter?

  • Awesome plugin! Can it display parameters in the URL? If my URL is example.com/?city=Chicago

    Can the shortcode display “Chicago” on the page?

Viewing 1 replies (of 1 total)
  • Plugin Author dcooney

    (@dcooney)

    Hi @hashimwarren,
    Thank you!

    You would have to do this before the shortcode.
    Like the following:

    <?php 
    	
    	if(isset($_GET('city'))){
    		echo '<h2>'. $_GET('city') .'</h2>';
    	}
    	echo do_shortcode('[ajax_load_more]');
    
    ?>

    Hope this helps.

    • This reply was modified 1 year, 12 months ago by dcooney.
Viewing 1 replies (of 1 total)
  • The topic ‘Display url parameter?’ is closed to new replies.