Build Your Own Business Website header image

Conditional Statements

Multilingual Website Case Study Part 5 – Add the Language Switching Function

This is the fifth in a series of live lessons on using WordPress and Thesis as a Multilingual Content Management System (CMS). In this lesson we create the function that allows us to switch between different languages. We get the new post meta, we use the new WordPress 3.1 function called “meta_query” and we create

Syntax Error in Conditional Statement – if(is_page())

Difficulty Level -

Filed Under Topics - , ,

Listed Under Lesson Subjects -

A member used some suggested code on the forum to remove the H1 tag from a specific page.  She discovered that the code worked fine if the conditional statement used the page slug but did not work if using the page id.  We discovered the syntax error that led to the problem of the page