Help to put Favorit button in blog post page
-
buddypics\includes\templates\album\comments.php
uses this code to show Fav/Unfav button in the post page itself
so that Fav/Unfav can be done like a 2-way switch from
both stream and content page<?php if ( is_user_logged_in() ) : ?> <?php if ( !bp_get_activity_is_favorite() ) : ?> <a href="<?php bp_activity_favorite_link(); ?>" class="fav" title="<?php _e( 'Mark as Favorite', 'buddypress' ) ?>"> <?php _e( 'Favorite', 'buddypress' ) ?></a> <?php else : ?> <a href="<?php bp_activity_unfavorite_link(); ?>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a> <?php endif; ?> <?php endif;?>
However when I put this code in template for blog posts
so that the same can be done for blog posts
the number is missing, and thus the Fav/Unfav button shows but fails to work.What am I doing wrong? Any code help, please?
Thanks
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Help to put Favorit button in blog post page’ is closed to new replies.