Group list, group tags issue without template pack
-
WordPress 3.5.2
BuddyPress 1.8I finally got my theme to work without the template pack but I am having one issue. I am using the BuddyPress Group Tags plugin which adds the tags at the top of the group directory list and once clicked it refreshes and filters the list below(ajax I think). This worked great with the template pack but now without it when I click a tag it just goes to a 404 page. It appears the ajax does not run at all.
I am trying to wrap my head around what was in the template pack that would have made it work. Something I did see in one of the group tags files was functions for javascript and ajax calling the groups-loop.php.
// load the javascript for the group tag clicks to work function gtags_enqueue() { wp_enqueue_script('gtags=group-tags', WP_PLUGIN_URL.'/buddypress-group-tags/group-tags.js', array('jquery') ); load_plugin_textdomain( 'gtags', false, dirname( plugin_basename( __FILE__ ) ).'/lang' ); } add_action('init', 'gtags_enqueue'); //add css function gtags_header() { echo '<link rel="stylesheet" type="text/css" href="'.WP_PLUGIN_URL.'/buddypress-group-tags/group-tags.css" media="screen" />'."\n"; } add_action('wp_head', 'gtags_header'); // this catches the ajax call, and loads the groups template function gtags_ajax() { locate_template( array( "groups/groups-loop.php" ), true ); die; }
Maybe some of this is outdated? I am just looking for a little help to get pointed in the right direction.
- The topic ‘Group list, group tags issue without template pack’ is closed to new replies.