How to change style attribute of an element dynamically How can I change a style in the content (without having to change the content in all my pages)? To change all the <h3> tags to <h2>, add … [+]
How to get a parent page name Is there an easy way to retrieve the name of the parent page of a WordPress page? Add this code to your plugin or functions file: [php] <?php /** … [+]
Redirect all 404 to home page How can I redirect all non-existing pages to the home page? Add this code at the beginning of your 404.php template: [php] <?php … [+]
Display content only for logged users How can I show content only for logged user or admin in my template? Depending on what you want to test, just add one of these snippets to your … [+]