WordPress.org

Ready to get started?Download WordPress

Forums

Print-O-Matic
[resolved] print links to only one post (6 posts)

  1. jolly286
    Member
    Posted 10 months ago #

    Hello again. One more question. I have the shortcode in each of my posts with the default target attribute as .post but when I try to print other posts that the first one, it still links to print the first one. Any suggestions? Thanks!

    http://wordpress.org/extend/plugins/print-o-matic/

  2. Baden
    Member
    Plugin Author

    Posted 10 months ago #

    The solution is clear: Each shortcode must target the unique ID of each post. We'll look into a simple, smart way for the plugin to support this. Just for you! Well, you and others that need this kind of thing.

  3. jolly286
    Member
    Posted 10 months ago #

    Thanks! In the meantime, I will adjust the shortcodes. Thanks again.

  4. Baden
    Member
    Plugin Author

    Posted 10 months ago #

    Jolly,
    As of version 1.4 the placeholder %ID% may be used to automatically insert the post ID as follows:

    [print-me target="#post-%ID%"]

    This should save you from having to manually enter the ID for each shortcode.
    Please let us know if you need further assistance.

  5. jolly286
    Member
    Posted 10 months ago #

    Perfect! Thank you!

  6. Baden
    Member
    Plugin Author

    Posted 10 months ago #

    You are welcome. Vote for Pedro!

Reply

You must log in to post.

About this Plugin

About this Topic