WP Recent Post By Category in IndexU
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 :
- Make sure that you have done the initial Wordpress and IndexU integration first.
- Edit your indexu-blocks.php script, and add the following code at the bottom :
-
Ok, everything is ready now. You can call the blocks anywhere from your template (Ex : header.html, footer.html).
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 :
That's all, hope it is useful.
Comments and feedbacks to improve this mods are welcome.








