Home Page

Twitter RSS

  • Home
  • WordPress Tips and Tricks
  • WordPress Themes
  • Contact
Home Page » WordPress Tips and Tricks
  • Why do we need cat_is_ancestor_of()?

    Sep 29, 2010 • Posted in WordPress Tips and Tricks • 1 comment

    I bet you’ve already seen those dual themes called Blog-Portfolio or something like that. Such WordPress themes use 2 or more different layouts to render different sections of WordPress driven website. More precisely, if we talk about Blog-Portfolio theme, one layout is probably used forREAD MORE

  • How to find out whether a Page has sub-pages?

    Sep 23, 2010 • Posted in WordPress Tips and Tricks • 0 comments

    There are several ways to achieve the goal but I guess this one is the most efficient and quickest due to fact it uses WordPress’ built-in recursive function called “get_page_children”. What this function actually does? It matches against the pages parameter against the page IDREAD MORE

  • How to auto-trim the_content()?

    Sep 19, 2010 • Posted in WordPress Tips and Tricks • 0 comments

    trim post contentThere are two “official” methods of how to display Post excerpt: by using built-in text editor “Insert More tag” (Ctrl+Shift+T) or WordPress function named “the_excerpt()”. By the way, Post excerpt is actually a chunk of text containing that “MORE” link at the end. None ofREAD MORE

  • How to add custom input field to Media panel?

    Sep 18, 2010 • Posted in WordPress Tips and Tricks • 1 comment

    custom media panelWordPress allows you to upload many different file types and – of course – insert it to Post or Page. You already know that each file is uploaded via Media Panel and you definitely know how it looks like by default. But what if youREAD MORE

  • How does pre_get_posts work?

    Sep 17, 2010 • Posted in WordPress Tips and Tricks • 0 comments

    pre_get_postsIn case you need to modify $wp_query object for some reason it’s good idea to use “pre_get_posts” filter. Maybe it will sound better if I say that you can easily intercept $wp_query before any results are returned. I guess you wonder how that can beREAD MORE

Recently commented

  • Dec 20, 2010 • Posted by Michael Keene

    Awesome! Thanks for the tip -- very useful.

  • Oct 3, 2010 • Posted by Jeff

    Great article, thanks for sharing. That's exactly what I've been looking for.

Adverts

FlashDen ThemeForest AudioJungle GraphicRiver

Google Ads


  • Home
  • Contact
© sofarider.com 2012
Home Page