• Hi.

    I am looking to use a like/dislike plugin to which I can assign a custom ID within the shortcode preferably.

    The reason is that I want to have a like/dislike button on a page that is dynamically generated by a PHP script and which can present any of a number of different contents, each of which has an ID number. I want the page to display a like/dislike button that has an ID which matches that of the specific content, such that that I can keep track of the reaction to each content. That could be done if the shortcode could be generated by the php script. Maybe there is also another possible way.

    For example: The page displays content #42 say by mysite.com/mypage.php?content-ID=42. Then the script could generate a shortcode echo do_shortcode ("[wp_ulike id='{content-ID}']") (maybe misspelt code, sorry) and the content would have its own like/dislike button and stats.

    Can this be achieved within WP Ulike?

  • The topic ‘custom id for use with php-generated page’ is closed to new replies.