Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Suppress Default Portfolio Output

Discussion in 'Content Management Systems' started by julian, Jul 30, 2014.

Thread Status:
Not open for further replies.
  1. julian United Kingdom

    julian Banned

    Joined:
    Aug 2007
    Posts:
    2,252
    Likes Received:
    41
    Anyone know of a hack to stop wp out putting all images or posts by default when page loaded.
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    IWA Meetup
     
  3. tifosi United Kingdom

    tifosi Well-Known Member

    Joined:
    Oct 2004
    Posts:
    3,414
    Likes Received:
    55
    Depends what you want it to output. Assuming you're using the default loop i.e. your theme doesn't override this with a query_posts() call?

    The default query can be modified easily enough by using the pre_get_post action. There's a few around the same vein to modify wp_query directly as well.

    http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
     
Thread Status:
Not open for further replies.