• Just a really quick question, I recently had to add ‘$args = false” before including a custom post loop to display some content and I literally have no idea why. Can someone just explain to me in fool proof terms what this is doing and why it was needed as I don’t even know myself but I managed to use it successfully to get the result I was looking for!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve never seen a need for such a thing. But, you might want to post your code to get some help with it.

    Thread Starter kaimersh20

    (@kaimersh20)

    <?php
     $args = false;
    include "post_types/slider.php";
    ?>
    
    <?
    $args = false;
    include "post_types/ttk.php"
    ?>

    there is no problem now, as this was the fix to begin with – i was just curious as to why this may have been needed in order for the content to display properly. It wouldnt display the correct content without this and it also wouldn’t display correctly when setting it to true/array. I just want to know what that is doing and why it was needed..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘$args problem’ is closed to new replies.