6/13/2008 ↓

Useful WordPress Tricks (for the Theme Designer)

Thanks for visiting! We would like to serve you better. Please subscribe to our RSS feed for daily updates. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. You can also receive updates from this blog via email if you want that method of notification.

Useful WordPress Tricks: StylizedWeb has an interesting article on simple but useful WordPress functions and code tricks that can make your theme succint, short and keep it optimized. Examples are simple to understand an include code to copy and paste to try on your own.

1 Star2 Stars3 Stars4 Stars5 Stars (9 votes, average: 4.22 out of 5)
Loading ... Loading ...

Friends

Translate

Translate to German Translate to Spanish Translate to French Translate to Italian Translate to Portuguese Translate to Japanese Translate to Korean Translate to Russian Translate to Chinese

Latest Videos

4 Comments | Leave a comment | Comments RSS

  1. thanks for mentioning me!

    [Reply] Dejan (3 comments.) — 06/13/2008 @ 5:02 pm
  2. just wanna touch the include specific files tips for sidebar
    if you have additional sidebar like for single or archive you can do it like the following (WP2.5.x)


    get_sidebar($name); // arg $name is sidebar-"name".php

    the function will look for sidebar-single.php (inside theme dir) and load it if exists otherwise it will load the default sidebar.php.

    you can include section base sidebar base on wordpress hierarchical order. below is just a simple example (need to tweak it base on which section came first thought)

    if (is_single()){
    get_sidebar('single'); // include /theme/sidebar-single.php
    } elseif (is_archive()){
    get_sidebar('archive'); // include /theme/sidebar-archive.php
    } else {
    get_sidebar();
    }

    [Reply] ChaosKaizer (52 comments.) — 06/14/2008 @ 12:51 am
  3. thanks for the tip ChaosKaizer

    [Reply] Dejan Cancarevic (3 comments.) — 06/14/2008 @ 7:57 am
  4. Pretty simple but got the point. Thx

    [Reply] Roni (9 comments.) — 06/19/2008 @ 2:17 am

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

(required)

(required, will not be published)


S2