Mladen.i
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Exlcude users by id?Hello,
You should be able to use
exclude
parameter ofget_users
function like this:$mvp_users = get_users('role=contributor&orderby=display_name&order=ASC&exclude=23,54,67'); foreach( $mvp_users as $user ) { $post_count = count_user_posts( $user->ID ); if($post_count < 1) continue; }
You would replace 23,54,67 with your own IDs of course.
Hope that helps.
Forum: Fixing WordPress
In reply to: WP List Categories FunctionHello,
You could try something like this:
<?php switch_to_blog(10); $cats = wp_list_categories(array ( 'orderby' => 'name', 'child_of' => '193', 'style' => '', 'separator' => '<br /><br />', 'echo' => 0 )); echo str_replace('<a','<a target="_blank"', $cats); restore_current_blog(); ?>
Hope that helps.
Forum: Fixing WordPress
In reply to: Drop down submenu spacing helpHello,
You could add this code inside your theme’s style.css file:
#nav-wrapper .sf-menu li li { height: auto!important; }
Hope that helps.
Forum: Fixing WordPress
In reply to: Grab images from post?Hello,
You can take all post images like this:
$media = get_attached_media( 'image' );
Find out more about
get_attached_media
function on CodexForum: Plugins
In reply to: [WP Tab Widget] i Can't activate the plugin.Forum: Plugins
In reply to: [WP Tab Widget] [1.2.4] default language files not taken into accountHello,
You are right, the plugin translation files should be named like this:
{plugin-textdomain}-{locale}.po
{plugin-textdomain}-{locale}.moSo in this case your files should be named like:
wp-tab-widget-nl_NL.po
wp-tab-widget-nl_NL.moas you said in other thread https://www.ads-software.com/support/topic/translation-not-working-25?replies=3#post-8204472.
Also, we will remove default.po and default.po and add wp-tab-widget.pot file in next update.
And finally, please upload your translation files somewhere and send us a link and we will include them in next update.
Thank you.