Here is coding I found in functions.php file hopefully someone can help me tweak it to work with specific page id.
/* Change the default rendering of the before content widget area to render before #container. */
remove_action( ‘pc_after_container’, array( &$this->_utility_callbacks_class, ‘front_page_before_content’ ) );
add_action( ‘pc_after_get_header’, array( &$this->_utility_callbacks_class, ‘front_page_before_content’ ), 11 );
I could not find were the rest of pertaining code is. I was looking for something like sidebar-before-content.php, but all I found where these files:
sidebar-footer.php
sidebar-header.php
sidebar-primary.php
sidebar-secondary.php
I doubt any of them would be needed. Should I also create a new “sidebar-before-content.php” file? If so what would be the code for that?
Thank you for the help, I will really appreciate it as I’m not too savvy with this stuff.
]]>Lets say I have the following code working to show the child pages of a parent page (and inline child pages of current child page):
<?php
if($post->post_parent)
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
else
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
if ($children) { ?>
<ul>
<?php echo $children; ?>
</ul>
<?php } ?>
How can I turn this into a wordpress widget/plugin so that all I have to do to make it visible on a page is drag and drop the new, corresponding widget into the sidebar?
Thanks,
Phil
]]>I have created a new text widget.i wanted to have modified text widget and also the simple text widget. so i need to create it.
After creating the new text widget with some modification the old simple text widget disappeared.
anybody having idea what to do???
Suggestions are invited and appreciable.
]]>A Popular Posts Widget. It’s different than the current popular post widgets out there right now, here is how I would want it:
A WordPress blog user creates categories for their posts, for example:
Chicken
Fish
Salads
And let’s say they write a post on “chicken”, they would naturally give it the category of chicken.
I would like a sidebar widget to list the last 3, 5, or 10 posts from a choice of category’s.
In this case, I would want the last 5 post titles from anything posted in the “chicken” category to show up in the sidebar with a clickable link to view the blog post.
I’d want the widget to allow you to choose whether you want the last 3, 5, or 10 posts and also allow you to select the category to choose from, so there would be a dropdown box that lists the category’s on the blog.
In addition, I’d want to be able to use this widget multiple times so I could show the last 5 posts for example from a few different category’s. I’d have one for “chicken” and another one showing “fish”
Lastly, I’d want to be able to know where to put the CSS so that the sidebar widget look and design can be changed.
Thanks!
]]>