Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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=418

    Thanks, I hope this helps.

    Hi 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

Viewing 2 replies - 1 through 2 (of 2 total)