Buttons not appearing on one page only?
-
Hi, your plugin is great, btw. It does pretty much exactly what we need. I am using your plugin like this:
if ( function_exists( 'bp_follow_add_follow_button' ) ) { if (bp_loggedin_user_id() && bp_loggedin_user_id() != get_the_author_meta('ID')) { bp_follow_add_follow_button(array( 'leader_id' => get_the_author_meta('ID'), 'follower_id' => bp_loggedin_user_id() )); } }
This code is being used on 2 pages (both are the same actual page, content.php). When running, the buttons do not show up at all on the initial page, but the other page and any other page (members), it shows up fine.
I started debugging and came up with this difference in the bp-follow-templatetags.php file.
On line 201, you build a $button variable. Everything in that variable matches on both pages except the _wpnonce. Obviously, this is intentional, but I was wondering if you would have any idea why the bp_get_button call would not return on one, but on another page?
Thanks!
- The topic ‘Buttons not appearing on one page only?’ is closed to new replies.