Title: shortcode cbxwpbookmarkbtn not working
Last modified: March 12, 2020

---

# shortcode cbxwpbookmarkbtn not working

 *  Resolved [mathieu75](https://wordpress.org/support/users/mathieu75/)
 * (@mathieu75)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-cbxwpbookmarkbtn-not-working/)
 * Hello support
 * The shortcode cbxwpbookmarkbtn is not working on my website.
    The PHP code echo
   do_shortcode(‘[​cbxwpbookmarkbtn object_id=”‘.$item->object_id.'” object_type
   =”‘.$post->post_type.'”]’); just wrote it on the page. Is that a pro function?
 * I’ve verified than i’m right in a wp loop and ID parameter is well transmit to
   the shortcode.
 * Thanks for your help

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

 *  Plugin Author [Sabuj Kundu](https://wordpress.org/support/users/manchumahara/)
 * (@manchumahara)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-cbxwpbookmarkbtn-not-working/#post-12537741)
 * pls contact here, share us your php file so that we can understand [https://codeboxr.com/contact-us/](https://codeboxr.com/contact-us/)
 *  Thread Starter [mathieu75](https://wordpress.org/support/users/mathieu75/)
 * (@mathieu75)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-cbxwpbookmarkbtn-not-working/#post-12541465)
 * I found a solution using this PHP code :
 * $post_id = $post->ID;
    $post_type = $post->post_type; if(function_exists(‘show_cbxbookmark_btn’)){
   echo show_cbxbookmark_btn($post_id, $post_type); }
 *  [biqu3](https://wordpress.org/support/users/biqu3/)
 * (@biqu3)
 * [6 years ago](https://wordpress.org/support/topic/shortcode-cbxwpbookmarkbtn-not-working/#post-12771556)
 * I had this problem also and fixed with the solution that [@mathieu75](https://wordpress.org/support/users/mathieu75/)
   gave!
 * You should put this info in your documentation
 *  Plugin Author [Sabuj Kundu](https://wordpress.org/support/users/manchumahara/)
 * (@manchumahara)
 * [6 years ago](https://wordpress.org/support/topic/shortcode-cbxwpbookmarkbtn-not-working/#post-12771830)
 * [@biqu3](https://wordpress.org/support/users/biqu3/) it’s in the documentation
   page from the very beginning I think [https://codeboxr.com/documentation-for-cbx-bookmark-for-wordpress/](https://codeboxr.com/documentation-for-cbx-bookmark-for-wordpress/)

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

The topic ‘shortcode cbxwpbookmarkbtn not working’ is closed to new replies.

 * ![](https://ps.w.org/cbxwpbookmark/assets/icon-256x256.png?rev=3215581)
 * [CBX Bookmark & Favorite](https://wordpress.org/plugins/cbxwpbookmark/)
 * [Support Threads](https://wordpress.org/support/plugin/cbxwpbookmark/)
 * [Active Topics](https://wordpress.org/support/plugin/cbxwpbookmark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cbxwpbookmark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cbxwpbookmark/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Sabuj Kundu](https://wordpress.org/support/users/manchumahara/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/shortcode-cbxwpbookmarkbtn-not-working/#post-12771830)
 * Status: resolved