• I need to only display certain posts in my archives, based on the value of a custom key.

    I’ve tried putting a simple PHP if statement in The Loop, but it doesn’t show anything. Could I please get some help on this? I’d really appreciate it. Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter sumeetjain

    (@sumeetjain)

    Update: Nevermind, I fixed it. The conditional does work, but I was forgetting about function scope and calling a variable (the value of the custom field) that wasn’t returned within the function.

Viewing 1 replies (of 1 total)
  • The topic ‘Conditionally Displaying Entries in Archives’ is closed to new replies.