• 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

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

    (@obeattie)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Page Custom Fields’ is closed to new replies.