Site of the Day

Aviva Strongest Directories

IndexU Tips & MODs

What's Up

Blog Calendar
May 2008
M T W T F S S
« Apr    
 1234
567891011
12131415161718
19202122232425
262728293031  

Blog Archives

Pagerank Statistics
PR 7
   
1 site(s)
PR 6
   
4 site(s)
PR 5
   
34 site(s)
PR 4
   
87 site(s)
PR 3
   
153 site(s)
PR 2
   
87 site(s)
PR 1
   
40 site(s)
PR 0
   
115 site(s)

WP Recent Post By Category in IndexU

 Thursday, April 24th, 2008

Recently we change our site again, instead of showing WP recent post from all we decide to show the recent post grouped by their categories. You can see this in our right panel : IndexU Tips & MODs and What's Up section. With this, now we can give more exposure to categories we want. This mods still related to the Wordpress and IndexU Integration that we did last year.

If you like it, here is how to do it :

  1. Make sure that you have done the initial Wordpress and IndexU integration first.
  2. Edit your indexu-blocks.php script, and add the following code at the bottom :
    Content visible to member only. Please register and login first.

  3. Ok, everything is ready now. You can call the blocks anywhere from your template (Ex : header.html, footer.html).

    Content visible to member only. Please register and login first.

    Change the $category_id with Wordpress category ID that you want to show.
    For example, here is the block calls that we use in our site :

    Content visible to member only. Please register and login first.

That's all, hope it is useful.
Comments and feedbacks to improve this mods are welcome.

Leave a Reply