I was contacted by onextrapixel to write some article for them. My first article was published yesterday. It explains how to use wordpress custom templates to create a blog page to display wordpress posts for websites that mainly use pages. It also explains how to customize the sidebar to create a layout with two different sidebars : one for the “normal” pages and one for the “blog post”. Here is the article: “Using WordPress Custom Template to Create Layout with … Continue reading
Using wp_reset_query() to make is_page_template() conditional tag behave with sidebar and footer.
One of the great features of wordpress is the conditional tags. Those are very powerful tags that you can use in templates to change content depending on a condition. There’s especially one very handful tag, when it comes to creating custom templates: is_page_template() . With this tag, you can check which template is being used by the current page. The use is quite simple: (don’t forget the .php extension or it won’t work.) This tag becomes very handy, when for … Continue reading