• Resolved wpalessandro

    (@wpalessandro)


    Hi, I use print-o-matic to allow users to print previews of posts inserted in a mosaic page that contains job offers. For years Print-o-matic has allowed me to do this using the [print-me target = “. Post_text” /] shortcode. After the latest updates, however, it allows you to print only the preview of the first post on the page. How can I go back to the previous situation without going back to a previous version of the plugin (which by the way would be affected by security problems)? I thank in advance whoever will want to give me a hand.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    Hello.
    You can roll back w/o security issues – the current versions just offer added layers of security. That being said, we would very much like to help get the current version working.

    We’ll setup a demo on our side to:
    1. verify there is no issue targeting multiple elements with the same class
    2. try and recreate the issue

    and get back with our findings.
    In the meantime, what happens when you target the parent container: .blog_holder?

    Plugin Contributor twinpictures

    (@twinpictures)

    OK, we were able to reproduce the issue… we’ll ping back with a patch status in the next 10 minutes or so.

    Plugin Contributor twinpictures

    (@twinpictures)

    Good news! simple fix. We’ll push an update to GitHub immediately and then to the WordPress Repo in the next hour.

    Thank you for your feedback!

    Thread Starter wpalessandro

    (@wpalessandro)

    Hi, I confirm that after the update the plugin works fine. Thanks for the quick reply. Is there a way to adapt the contents to be printed to the page format? In the current situation to make them fit on the page it is necessary to decrease the print size scale.

    Plugin Contributor twinpictures

    (@twinpictures)

    Happy to hear the fix solved the problem.

    Is there a way to adapt the contents to be printed to the page format?

    What you are describing can be easily accomplished using @media print css rules.

    This css can be inserted using WordPress’ built in custom css editor, your theme’s quick css area (if provided) or the custom print css section in the print-o-matic options page. Keep in mind, css added to the print page css is automatically wrapped in @media print, so it does not need to be defined here.

    Example to get you started:

    @media print{
       .post_text{
          border: 1px dotted black;
          width: 200px;
        margin: 10px;
       }
       .post_text_inner h5 {
          font-size: 12px;
          line-height: 11px;
        }
    }

    We’ll go ahead and mark this issue as resolved.
    If you are happy with the plugin or it’s support, please consider leaving a review.

    Thread Starter wpalessandro

    (@wpalessandro)

    Thanks a lot

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘problems printing the contents of a class’ is closed to new replies.