francodag
Forum Replies Created
-
Hi, first of all thanks to Silvia for great plugin.
I had the same category problem I used the code from jhanten with a little improvement to use custom category based on category name, the code is:after line 46:
'cat' => '',
to inizialize the parameter.And at the closure of “embed” if:
else if ( empty($cat) == false ) { $cat_id = get_cat_id($cat); // extract the videos for the gallery $params = array( 'cat'=>$cat_id, 'posts_per_page' => 50, 'post_type' => 'external-videos', 'post_status' => 'publish', 'order' => 'DESC', ); $old_params = $wp_query->query; $params['paged'] = $old_params['paged']; query_posts($params); // display the gallery display_gallery($width, $height); }
In this way I can use [external-videos cat=’category name’].
I’ve used the modified plugin here:
https://www.hwalmoodo.it/?page_id=244
https://www.hwalmoodo.it/?p=418Thanks, I hope this helps.
Forum: Plugins
In reply to: [People Lists] [Plugin: People Lists] Add custom fieldsHi enejb
the problem I’ve found with the People Lists custom fields functionality is that I can add only text fields.In the website that I’m currently creating I need to add some custom fields as listbox, than I’ve canged the people-lists.php adding my meta fields to the default fields array with the get_user_meta function:
$replacements[$counter] = get_user_meta($id, 'my_meta_field', true);
I think is good improvement to add in the template editing page, the possibility to select also from meta fields like “Member List” plugin.
For now I’ve graven my meta fields in the people-lists.php but I’m sure I’ll have to work to make it customizable, in this case I will be happy toshare my work.
Thanks