WordPress.org

Ready to get started?Download WordPress

Forums

'show at most' parameter (1 post)

  1. iand
    Member
    Posted 9 years ago #

    I'm working on some hackery to not count hidden posts and asides. Currently, part of the code is question is
    <?php static $ctr = 0;
    if ($ctr == "X") { break; }
    else { ?>

    where X is the number of posts. What I want to do is take the value of the 'show at most Y posts' option to replace X, which I currently have to set manually in index.php. Any suggestions what I could use instead of "X"?

    Or is there a quicker and easy (non-hacking) way?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.