Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wikius12

    (@wikius12)

    I’ve read through the articles, as well as played around with the snippet you posted but unfortunately the solution to my problem still eludes me. I imagine more than anything it’s an issue with my not being familiar enough with PHP yet.

    Based on the articles, I’ve attempted using:

    <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; ?>
    			<?php $notnews = array(
    				'cat' => -5,
    				'paged' => $paged
    				);
    			<?php $query = new WP_Query( $notnews ); ?>

    Which just breaks it, reporting a problem with the $query = new WP_Query line.

    Full page code here: https://pastebin.com/0P4j9YFh

    And I’ve also attempted using the code you pasted, Alchymyth (though I suspect I’ve used it incorrectly) and it didn’t work either. The page loads, however it doesn’t pull any of the articles.

    Full code for that attempt can be found here: https://pastebin.com/TKmaXvX5

    I’m sure the solution is right in front of me but I’m just not seeing it.

    Thanks for all your help!

    Thread Starter wikius12

    (@wikius12)

    Oops, posted too much code. Here’s the Pastebin link https://pastebin.com/sXm0Ht0f in case anyone needs to see it. Sorry about that.

    I’m looking over the articles now, and will let you know if it helps.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)