ldixon789
Forum Replies Created
-
Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Completely uninstallThank you for your response. I resolved the issue by deleting all content from My Calendar – events, categories, locations and it began working again.
Great plugin!Hi,
I’m getting the same error for someone with editor permissions who logged in directly and also if admin uses ‘user switching’ to switch to editor role. I’m running version 1.6.10.
Thanks for your help.Forum: Plugins
In reply to: [My Calendar - Accessible Event Manager] Recurring events – random patternPerfect! Thanks so much for you help
Perfect! Thank you so much
Forum: Plugins
In reply to: [Enhanced Media Library] Custom post type with media_categoriesThanks Nadia, that’s perfect.
Thank you so much for you helpForum: Plugins
In reply to: [Enhanced Media Library] Custom post type with media_categoriesThanks Nadia, that worked perfectly.
I’m now having the same problem I posted on the CPTUI plugin support – posts (the ‘Doc’ I set up above) categorised with media_category do not show up when I set up the menu to link to a certain category. Only media items categorised in the media library (with Enhanced Media Library) will show up in this list.
You posted the code below but it still isn’t working (I added it into my functions.php). I’m not sure what I should put in place of YOUR_PREFIX. Sorry to be such a novice.
Thanks so much for your help.
Here’s the code you posted:
add_action( ‘pre_get_posts’, ‘YOUR_PREFIX_pre_get_posts’, 100 );function YOUR_PREFIX_pre_get_posts( $query ) {
$taxonomy = ‘media_category’;
$post_type = ‘post’;if ( ! is_admin() && $query->is_main_query() && $query->is_tax( $taxonomy ) ) {
$query->set( ‘post_type’, array( $post_type,’attachment’ ) );
$query->set( ‘post_status’, array( ‘publish’,’inherit’ ) );
}
}Thank you so much. You’ve been really helpful. Have a nice weekend
Thanks that worked perfectly. My only problem now is that when I create a menu link [mysite url]/media_category/agendas, for example, only the documents I’ve categorised in the media library show up, not any of the posts I have added with my new post type created in CPTUI.
Thanks so much for your help. Really appreciate it.
Forum: Plugins
In reply to: [Enhanced Media Library] Custom post type with media_categoriesThank you very much for your reply. I made the changes you suggested but it still won’t work. I have been experimenting with the ‘Add taxonomy to post’ bit and found that the only statement that works (sort of) is below. The problem is it shows the Categories metabox on the page, not media_categories
// Add taxonomy to post
add_action(‘init’,’add_categories_to_cpt’);
function add_categories_to_cpt(){
register_taxonomy_for_object_type(‘category’, ‘doc_post_type’);
}If I change ‘category’ to ‘media_category’ is shows no metabox
(register_taxonomy_for_object_type(‘media_category’, ‘doc_post_type’);)If I change ‘init’ to ‘plugins_loaded’ it shows no metabox
(add_action(‘plugins_loaded’,’add_categories_to_cpt’);If I change both ‘init’ and ‘category’ to ‘plugins_loaded’ and ‘media_category’ it shows no metabox
Any advice you could offer would be much appreciated
Thanks again. The link is https://en-gb.www.ads-software.com/plugins/enhanced-media-library.
It enables users to add ‘media_category’ directly to items in the media library. I would also like users to be able to add the same media_categories via a post type as they are more familiar with that interface, which is why I am trying to add the taxonomy using CPTUI.
Thanks for replying. I registered the CPT (called Docs) using CPTUI. I registered the taxonomy (called media_category) using Enhanced Media Library.
media-category seems to be available to link to Docs using the ‘Built in Taxonomies’ check-box, but doesn’t show up when adding a new Doc
Any help much appreciated.