How to include "Favorit" button in a post page
-
How to include “Favorit” button in a post page, for example a media page (eg. rtmedia) or a blog post page ?
I have seen that the plugin “Buddypics” does this
<?php do_action( 'bp_media_before_activity_meta' ); ?> <?php if ( is_user_logged_in() ) : ?> <?php if ( !bp_get_activity_is_favorite() ) : ?> <a>" class="fav" title="<?php _e( 'Mark as Favorite', 'buddypress' ) ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a> <?php else : ?> <a>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a> <?php endif; ?> <?php endif;?>
Howevr when I do this, for example in, wp-content/plugins/buddypress-media/templates/media/media-single.php I do get the “Favorit” link/button but it is missing something
/activity/favorite//?_wpnonce=f99fe2d956
the above is supposed to be /activity/favorite/x/?_wpnonce=f99fe2d956 where x is something like 6, 7, 8 etcI have looked up in the docs but not finding any solution.
- The topic ‘How to include "Favorit" button in a post page’ is closed to new replies.