Adding a class to last post in the_date

Its possible, you can get the next post date to compare using get_adjacent_post function change your code to this: <?php while ( have_posts() ) : the_post(); //hold current date $curent_date = $post->post_date; //fix the format to YYYY-MM-DD $curent_date = substr($curent_date,0,strpos($curent_date,” “)); $next_post = get_adjacent_post(false,”,false) ; if (!$next_post == ”){ //get next post’s date $next_date = … Read more

modify buddpress adminbar only in admin pages

You ca use the conditional tag is_admin() to check if you are on the front-end or back-end like this: function bp_adminbar_currentsite_menu() { global $bp; if (!is_admin()){ ?> <li> <!– Insert your link url or relative url, and your link text below –> <a href=”http://EXAMPLE.COM”>EXAMPLE LINK TEXT</a> </li> <?php } } // Call The Function Above … Read more

adding images to wordpress pagination?

Maybe my (edu) plugin can help you understanding the ways that are possible to display pagination a little better. I updated it after reading your Q. You can now more easily style your links. Just add your buttons as background-images to the stylesheet.

Creating mulitple loops in a sub-category page

I figured this out on my own. I use the code below and duplicated it as many times as I needed without any issues so far. If anyone thinks this is incorrect than please comment. I was not using the main loop anywhere else on this page and used WP_Query. <ul class=”subcats-list”> <?php $weightloss = … Read more