Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 24th Jun 2010, 09:19 PM   #1
charlyms21
 
Join Date: 2010
Location: United States
Posts: 67
Thanks: 1
Thanked 2 Times in 2 Posts
Default
Little PHP help needed to customize my Sidebar options
Share on: 
fb share twitter share gplus share more share

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
charlyms21 is offline  
Closed Thread


Bookmarks

Tags
customize, needed, options, php, sidebar


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:28 AM.