iltdevunit
Forum Replies Created
-
Thanks. Rather than stripping out core code, I used the following workaround:
- added
<ul class="replace">to ‘HTML to display before the list of posts:’ - Added to following php to my page template:
$related = do_shortcode('[crp limit="6" heading="1" cache="1"]'); $related = str_replace('replace"','kopa-featured-news-carousel" data-pagination-id="#single_related_posts_pager" data-scroll-items="3"',$related); echo $related;
Hope this is useful to others.
Forum: Plugins
In reply to: [Media Library Categories] Exclude category from Media LibraryI managed to do it by adding this code to functions.php
function hide_media_categories($query) { global $pagenow; if( ( 'upload.php' != $pagenow ) || !$query->is_admin ){ return $query; } $tax_query = array( array( 'taxonomy' => 'media_category', 'field' => 'id', 'terms' => array(177), 'operator' => 'NOT IN' ) ); $query->set( 'tax_query', $tax_query ); } add_filter('pre_get_posts', 'hide_media_categories');Forum: Plugins
In reply to: [Enhanced Media Library] Hide term from media libraryHi Nadia,
Sorry, I should have given more information.I have a media category called ‘avatar’, with an ID of 177. I wanted to hide these from appearing in the media library (upload.php).
I managed to do it by adding this code to functions.php
function hide_media_categories($query) { global $pagenow; if( ( 'upload.php' != $pagenow ) || !$query->is_admin ){ return $query; } $tax_query = array( array( 'taxonomy' => 'media_category', 'field' => 'id', 'terms' => array(177), 'operator' => 'NOT IN' ) ); $query->set( 'tax_query', $tax_query ); } add_filter('pre_get_posts', 'hide_media_categories');Forum: Plugins
In reply to: [Enhanced Media Library] Programmatically add media category to an imageIgnore me. As EML is a taxonomy, I can just use wp_set_post_terms().
Forum: Plugins
In reply to: [Active Directory Integration] Multiple OU in Base DNMarking as resolved.
Forum: Plugins
In reply to: [Active Directory Integration] Multiple OU in Base DNIt seems if you leave OU out of the Base DN entirely, then that does the job 🙂
Forum: Plugins
In reply to: [EZP Coming Soon Page] Compatibility with Theme My LoginHi Bob,
Many thanks for the update. Keep up the good work 🙂
RewriteRule ^(.*)$ - [F,L]This causes a problem too.
Forum: Plugins
In reply to: [WP Customer Reviews] When is version 3 coming out?My only concern with the pro version is the level of support. They dont seem very ‘visible’ right now.
Forum: Plugins
In reply to: [SSL Insecure Content Fixer] no http reference but still mixed contentHi Ross,
Thanks very much for the quick reply. You’re spot on with the problem plugins.Thanks again 🙂
Forum: Plugins
In reply to: [WordPress HTTPS (SSL)] Force SSL Exclusively not workingInterestingly, I also have Better WP Security installed. That has a similar feature to control page/ssl. It is supposed to place a ‘Force SSL’ checkbox in the Publish metabox in admin, but in my case it doesn’t.
Forum: Plugins
In reply to: [Social Login] library.js not ssl – mixed contentIt seems the combination of ‘WordPress HTTP’ and ‘SSL insecure content fixer’ is flipping the https provided (correctly) by Social Login back to http.
Forum: Plugins
In reply to: [WP Customer Reviews] When is version 3 coming out?Hmmm. Sounds like it could be a fair while yet then.
Forum: Plugins
In reply to: [Dave's WordPress Live Search] Restrict results to a custom post type for v4Thanks for the tip 🙂
Is there a hook so we can add this without changing the plugin’s core files?Forum: Plugins
In reply to: [WP Customer Reviews] When is version 3 coming out?Ah, fair enough. I’m in the UK 🙂
- added