How can I assign widgets from WP to appear in bbpress?
Now, you can use the bbPress Plugin, which is currently in beta-release.
Now, you can use the bbPress Plugin, which is currently in beta-release.
Hi @user2816: It would seem you are using that code in more than one widget? Try changing part of that code from these: function filter_whene($whene=””) { $whene .= ” AND post_date >= ‘” . date(‘Y-m-d’) . “‘ “; return $whene; } add_filter(‘posts_whene’, ‘filter_whene’); To this: if (!function_exists(‘filter_whene’)) { function filter_whene($whene=””) { $whene .= ” AND … Read more
Figured out how (Thanks to WordPress Codex): /** @see WP_Widget::widget */ function widget($args, $instance) { extract( $args ); $title = apply_filters(‘widget_title’, $instance[‘title’]); ?> <?php echo $before_widget; ?> <?php if ( $title ) echo $before_title . $title . $after_title; ?> <?php // Create and run custom loop $custom_posts = new WP_Query(); $custom_posts->query(‘post_type=page_content’); while ($custom_posts->have_posts()) : $custom_posts->the_post(); … Read more
When adding a plugin to WordPress.org plugin repository you need to host the plugin somewhere (anywhere) and that is the “Plugin URL” so the good guys at WordPress could download it, test it and approve it to be listed. so just upload it to your host and enter the url to the zip file. Once … Read more
you can always get the thumbnail, but size it with CSS as Xavier mentioned.
I remember a support topic i read with regard to a problem when you use the name name for one of your post fields, try prefixing your input names. <input type=”text” name=”my-name” … And see if that helps.. Follow-up #1 I performed a simple test inside a widget.. if( isset( $_POST ) ) { print'<pre>’;print_r( … Read more
Since the question was asked in May, the WP core team released the Admin Debug Bar, and its ancillary plugin Debug Bar Console is exactly the balm to ease any WP Programmer’s pain.
there are a few way to run a function in widgets: option 1 – ShortCodes You can create a custom shortcode and run that function by entering the shortcode into a simple text widget: //this is to make sure WordPress renders the shortcodes in a text widget add_filter(‘widget_text’, ‘do_shortcode’); add_shortcode(‘my_short_code’,’my_function’); function my_function(){ //do whatever you … Read more
The format of the selected() function you are using is incorrect. selected() can only be passed two variables, you are passing three. Please see this codex article for help: http://codex.wordpress.org/Function_Reference/selected Without you pasting more of your code I cannot see how to fix your above code.
This plugin might help you : Widget logic EDIT There are also many variants of this kind of plugin listed in this article. Maybe you’ll find one that suits your needs there.