Paging in a sidebar mini loop
Try doing global $paged before using the variable in the widget function.
Try doing global $paged before using the variable in the widget function.
You probably want to define a size for post thumbnails for this side-bar area first. This needs to be registered with your theme so you can refer to it later one. Then you can make use of the get_the_post_thumbnail() function passing the ID of the post as well as your post thumbnail size name as … Read more
Use three sidebars an let them float. Anything else will break depending on the widgets your users insert.
This is your code converted so it does not use global variables, and thus can’t stomp on anything. If this does not work, check your plugins: maybe one of them uses a hook in WP_Query to change the query on the home page? get_posts() gets around that by setting suppress_filters to true, but I don’t … Read more
Now, you can use the bbPress Plugin, which is currently in beta-release.
I found this on the codex You can only use conditional query tags on or after the init action hook in WordPress. For themes, this means the conditional tag will never work properly if you are using it in the body of functions.php, i.e. outside of a function. update you don’t need to hook the … Read more
you can use Query Posts plugin which creates a widget that you can place on that sidebar, and select what to display. if you are looking to code your own the its a you are sure that you wont remove it from that side bar you can create a simple custom WP_query to selset your … Read more
If you useWidget Logic it adds a new filter widget_content which you can hook your function to and add link to it somthing like: add_filter(‘widget_content’,’add_link_to_widgets’); function add_link_to_widgets($content){ return $content . ‘<br /><a href=”http://www.domain.com”>my link</a>’ } Update You are missing the point, the plugin is great if you want to use his ability to limit the … Read more
take a look at Sidebar Generator it lets you specify a sidebar on a per-page/per-post basis. some of its main features are: Generate unlimited sidebars pick a sidebar on a per-page and per-post basis unique CSS classes for each sidebar for customizable looks
A shortcode handler doesn’t have to return anything, it can just modify a global variable that you later read in your sidebar widget. If your sidebar is displayed after your post content (most likely if it’s a right sidebar), you can do this without any problem. If your sidebar is displayed before the post content … Read more