• Resolved Kai J.

    (@kjoussen)


    Hello.

    I assume it’s my fault but don’t get it…even not after reading the doc on pluginoven.

    Might sound like a silly question….

    I have several posts, each given a category. E.g. i have 10 posts with delicious recipes, 8 posts for fantastic wines…and so on.

    On my “blog-page” i filter the posts according to the menu-item which was clicked in my theme.

    For testing purposes i insertet [print-me ?target="#post-%ID%"] in the first recipe post.
    When viewing the page for recipes, the icon shows up and when clicking the browser typical print windows comes up (where i can choose the printer and so on), but not only for this specific post but for the whole page, so all recipes should be printed.

    When the specific post is viewed alone (single.php) it is fine.
    But the most of my posts are short and therefore not clickable but shown among each other on one page (with the famous loop, you know).

    What to insert in the shortcode (or even each post) that only the shown post will be printed?

    Thanks and cheers

    Kai

    • This topic was modified 4 years, 9 months ago by Kai J..
Viewing 1 replies (of 1 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    if each target had an ID of “post-<the_post_id>” then you would use the shortcode you posted above: [print-me target="#post-%ID%"]
    If each post is not wrapped using such a naming convention (highly likely) you would need to change the target to match.

    Without a link to the page in question, we can not be of further assistance.

Viewing 1 replies (of 1 total)
  • The topic ‘Printing all posts of one category instead of only one’ is closed to new replies.