Page Custom Fields (2 posts)

  1. obeattie
    Posted 10 years ago #

    Hi All,

    I'm trying to get a navigation bar which only features pages which are 'featured'.

    It is set to list all pages and I am using the following code to try and exclude posts which have the 'is_featured' key set to the value of 'false':

    elseif ($custom_fields["is_feature"] == "false") {/*ignore*/}

    Could anyone be so kind as to tell me what I am doing wrong and point me in the right direction?

    Many Thanks in Advance,
    Oliver Beattie

  2. obeattie
    Posted 10 years ago #

    By the way, the elseif is the correct syntax to use here, as it is being used in conjunction with some other stuff.

    Thanks. Oli.

Topic Closed

This topic has been closed to new replies.

About this Topic