Little PHP help needed to customize my Sidebar options

0 replies
  • WEB DESIGN
  • |
My sidebars Archives code as given in sidebar.php is this
<div id="sidebar-middle" class="clearfloat">
<div id="sidebar-left">
<?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
<h3><?php _e('My recent posts by Date','arthemia');?></h3>
<ul>
<?php wp_get_archives('type=daily&limit=30'); ?>
</ul>
<?php endif; ?>

</div>
I already changed the above as per the instructions given here
Code:
http://codex.wordpress.org/Template_Tags/wp_get_archives
from
<?php wp_get_archives('type=monthly&limit=12'); ?>
to
<?php wp_get_archives('type=daily&limit=30'); ?>
as shown in red.
I changed the Archives showing monthly to daily as is shown.But I make more than 1 posts each day.So I want my Sidebar to look like this for
eg:
>June 25th 2010
Post 1
Post 2
..........

>June 24th 2010
Post 1
Post 2
..........


Ie the sidebar needs to display all the posts headings made during a Day in the Sidebar as shown in blue above.
Can someone help me on what do I need to change the above code to so as to make it appear like as I wanted.Thanks

Also I have one more doubt over these chunks of code

<?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
<h3><?php _e('My recent posts by Date','arthemia');?></h3>
<ul>
<?php wp_get_archives('type=daily&limit=30'); ?>
</ul>
<?php endif; ?>


What is meant by the statement saying,if plugin installed and follows.What plugin do I need to install so that I can get the same to appear as Widgetized Sidebar.
Please help me solve the above confusions.Thanks
#customize #needed #options #php #sidebar

Trending Topics