cinderalla
Forum Replies Created
-
Forum: Plugins
In reply to: [bbPress Notify (No-Spam)] Is it possible to moderate in addition to notify?Thanks for your reply. Looking forward to the update.
Forum: Plugins
In reply to: [bbPress Notify (No-Spam)] Is it possible to moderate in addition to notify?Hello useStrict,
Just wondering what your timeline is for adding the filter to your plugin.
Thank you. Really appreciate it.
Forum: Plugins
In reply to: [Review Disclaimer] Disclaimer TextThat would be because the plugin is not meant to popup a disclaimer…
Forum: Plugins
In reply to: [bbPress Notify (No-Spam)] Is it possible to moderate in addition to notify?Important note to add to my last comment: I may have misunderstood what the filter is that you are looking into adding.
If the filter is to put the new topics and replies into “pending” status, that would be perfect. May not need the moderation plugin then.
Forum: Plugins
In reply to: [bbPress Notify (No-Spam)] Is it possible to moderate in addition to notify?That’s fantastic!! Thank you useStrict.
I’m using the built-in bbPress forum role “Moderator”
Just in case some more details/clarification will help:
- Am using three plugins: bbPress Notify (No Spam), bbPress, and bbPress Moderation
- bbPress Moderation plugin is set to put all new topics and replies into pending status
- Then, I’m hoping to use your plugin to notify the bbPress forum moderators, so they can be responsible for moderating, instead of the website administrator.
So strange…
The WP MCM Settings are as follows.
- Toggle Assign: yes
- Media Taxonomy To Use: MCM Categories (#4)
- Name for Custom MCM Taxonomy: empty
- Custom Singular Name: empty
- Use Default Category: no
- Default Media Category: no default category
- Use Post Taxonomy: no
(If you need a screenshot, let me know where to send and I can do that.)
Just figured out what the issue may be. When I assigned an MCM category to an image file and it displayed as expected with the shortcode. I assumed that attachments would include PDF files, but it looks like that’s not the case?
This is a var_dump using wp_query in a template file:
["query"]=> array(3) { ["post_type"]=> string(10) "attachment" ["post_parent"]=> NULL ["tax_query"]=> array(1) { [0]=> array(3) { ["taxonomy"]=> string(14) "category_media" ["field"]=> string(4) "slug" ["terms"]=> array(1) { [0]=> string(8) "test-mcm" } } } } ["query_vars"]=> array(64) { ["post_type"]=> string(10) "attachment" ["post_parent"]=> string(0) "" ["tax_query"]=> array(1) { [0]=> array(3) { ["taxonomy"]=> string(14) "category_media" ["field"]=> string(4) "slug" ["terms"]=> array(1) { [0]=> string(8) "test-mcm" } } } ["error"]=> string(0) "" ["m"]=> string(0) "" ["p"]=> int(0) ["subpost"]=> string(0) "" ["subpost_id"]=> string(0) "" ["attachment"]=> string(0) "" ["attachment_id"]=> int(0) ["name"]=> string(0) "" ["static"]=> string(0) "" ["pagename"]=> string(0) "" ["page_id"]=> int(0) ["second"]=> string(0) "" ["minute"]=> string(0) "" ["hour"]=> string(0) "" ["day"]=> int(0) ["monthnum"]=> int(0) ["year"]=> int(0) ["w"]=> int(0) ["category_name"]=> string(0) "" ["tag"]=> string(0) "" ["cat"]=> string(0) "" ["tag_id"]=> string(0) "" ["author"]=> string(0) "" ["author_name"]=> string(0) "" ["feed"]=> string(0) "" ["tb"]=> string(0) "" ["paged"]=> int(0) ["comments_popup"]=> string(0) "" ["meta_key"]=> string(0) "" ["meta_value"]=> string(0) "" ["preview"]=> string(0) "" ["s"]=> string(0) "" ["sentence"]=> string(0) "" ["fields"]=> string(0) "" ["menu_order"]=> string(0) "" ["category__in"]=> array(0) { } ["category__not_in"]=> array(0) { } ["category__and"]=> array(0) { } ["post__in"]=> array(0) { } ["post__not_in"]=> array(0) { } ["tag__in"]=> array(0) { } ["tag__not_in"]=> array(0) { } ["tag__and"]=> array(0) { } ["tag_slug__in"]=> array(0) { } ["tag_slug__and"]=> array(0) { } ["post_parent__in"]=> array(0) { } ["post_parent__not_in"]=> array(0) { } ["author__in"]=> array(0) { } ["author__not_in"]=> array(0) { } ["ignore_sticky_posts"]=> bool(false) ["suppress_filters"]=> bool(false) ["cache_results"]=> bool(true) ["update_post_term_cache"]=> bool(true) ["update_post_meta_cache"]=> bool(true) ["posts_per_page"]=> int(1000) ["nopaging"]=> bool(false) ["comments_per_page"]=> string(2) "50" ["no_found_rows"]=> bool(false) ["taxonomy"]=> string(14) "category_media" ["term"]=> string(8) "test-mcm" ["order"]=> string(4) "DESC" } ["tax_query"]=> object(WP_Tax_Query)#51 (6) { ["queries"]=> array(1) { [0]=> array(5) { ["taxonomy"]=> string(14) "category_media" ["terms"]=> array(1) { [0]=> string(8) "test-mcm" } ["field"]=> string(4) "slug" ["operator"]=> string(2) "IN" ["include_children"]=> bool(true) } } ["relation"]=> string(3) "AND" ["table_aliases":protected]=> array(1) { [0]=> string(21) "wp_term_relationships" } ["queried_terms"]=> array(1) { ["category_media"]=> array(2) { ["terms"]=> array(1) { [0]=> string(8) "test-mcm" } ["field"]=> string(4) "slug" } } ["primary_table"]=> string(8) "wp_posts" ["primary_id_column"]=> string(2) "ID" } ["meta_query"]=> object(WP_Meta_Query)#417 (7) { ["queries"]=> array(0) { } ["relation"]=> NULL ["meta_table"]=> NULL ["meta_id_column"]=> NULL ["primary_table"]=> NULL ["primary_id_column"]=> NULL ["table_aliases":protected]=> array(0) { } } ["date_query"]=> bool(false) ["request"]=> string(387) "SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (24) ) AND wp_posts.post_type = 'attachment' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 1000" ["posts"]=> array(0) { } ["post_count"]=> int(0) ["current_post"]=> int(-1) ["in_the_loop"]=> bool(false) ["comment_count"]=> int(0) ["current_comment"]=> int(-1) ["found_posts"]=> int(0) ["max_num_pages"]=> int(0) ["max_num_comment_pages"]=> int(0) ["is_single"]=> bool(false) ["is_preview"]=> bool(false) ["is_page"]=> bool(false) ["is_archive"]=> bool(true) ["is_date"]=> bool(false) ["is_year"]=> bool(false) ["is_month"]=> bool(false) ["is_day"]=> bool(false) ["is_time"]=> bool(false) ["is_author"]=> bool(false) ["is_category"]=> bool(false) ["is_tag"]=> bool(false) ["is_tax"]=> bool(true) ["is_search"]=> bool(false) ["is_feed"]=> bool(false) ["is_comment_feed"]=> bool(false) ["is_trackback"]=> bool(false) ["is_home"]=> bool(false) ["is_404"]=> bool(false) ["is_comments_popup"]=> bool(false) ["is_paged"]=> bool(false) ["is_admin"]=> bool(false) ["is_attachment"]=> bool(false) ["is_singular"]=> bool(false) ["is_robots"]=> bool(false) ["is_posts_page"]=> bool(false) ["is_post_type_archive"]=> bool(false) ["query_vars_hash":"WP_Query":private]=> string(32) "b30e4d95bd4d58eb728bb9cac6a689bc" ["query_vars_changed":"WP_Query":private]=> bool(false) ["thumbnails_cached"]=> bool(false) ["stopwords":"WP_Query":private]=> NULL }
I have a few hundred pdf’s that I need to assign categories to. Yours is the only plugin I could find that would do this in a batch. Any chance you’ll be making changes to allow for PDF files as well?
Thanks for your quick reply DeBAAT.
I did a number of test using the shortcode [wp-mcm category=”test-mcm”] on site pages and posts, but nothing displayed. It seems like it’s not working at all ??
I also tried your second suggestions with no luck ??
Just want to add another example. This one seems to return all attachments and ignore the ‘tax_query’.
$category_args = array( 'tax_query' => array ( 'taxonomy' => 'category_media', 'field' => 'slug', 'terms' => 'test-mcm' ), 'post_type' => 'attachment', 'post_status' => 'inherit' ); $attachments = new WP_Query( $category_args ); while ($attachments->have_posts()) : $attachments->the_post(); the_title(); endwhile;
I agree, that first solution wouldn’t be the best, but the function to remove the “offending” <p> and
<br>
tags is great! Thank you!Forum: Plugins
In reply to: [WP Super Cache] How to Allow Non-Admin to Delete Entire CacheStill looking for a solution on how to give non-admins access to the WP Super Cache settings… Using a custom role with every built-in capability, still does not allow access to WP Super Cache settings.
Found this function to call when a post is published: wp_cache_clear_cache(), which I’ll use as a next-best option.
Any possibility the plugin will allow for a WP Super Cache settings capability or similar sometime in the future?
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to Unregister Breadcrumb NavXT WidgetI found the answer to my question and just wanted to add it here in case it can help anyone else. The widget ID is bcn_widget and the priority argument was too high. Here’s what works in functions.php to remove the widget from the available widgets:
function mytheme_remove_widgets(){ unregister_widget('bcn_widget'); } add_action('widgets_init',mytheme_remove_widgets', 11);
Got it figured out! Used your “display_posts_shortcode_args” filter and modified as below (in case anyone else is stuck on this):
function be_display_posts_shortcode_exclude_posts( $args, $atts ) { if( isset( $atts['cat_not_in'] ) ) { $cats = explode( ',', $atts['cat_not_in'] ); $args['category__not_in'] = $cats; } return $args; } add_filter( 'display_posts_shortcode_args', 'be_display_posts_shortcode_exclude_posts', 10, 2 );
Turns out that a widget on the page was causing the issue.