• Resolved lymph1

    (@lymph1)


    Hi, I am using Highend Childs theme.

    I am developing a recipe blog and have installed TablePress to create tables. I want to offer the option to print the tables and have tried to add the Print-O-Matic shortcode to the same row/text block as the table. Unfortunately, the table does not print. All that prints is a blank page. I assume this is because TablePress also uses shortcode to create the table. Is there a way to get around this and print the table?

    David

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I don’t know Ping-O-Matic, but maybe https://tablepress.org/extensions/datatables-buttons/ can be solution?

    Regards,
    Tobias

    Plugin Contributor twinpictures

    (@twinpictures)

    We don’t know Ping-O-Matic, but Print-O-Matic (this plugin) should be able to print what you need if you provide the correct target. Can you provide a link to the page in question? Does the table have a unique ID or class you can target? If not, can one be set?

    Thread Starter lymph1

    (@lymph1)

    Hi, my website is https://www.pulseandpea.com and this is an example of the post I have added Print-O-Matic to https://69.89.31.141/~pulsean1/?p=8015

    In backend editor, the tablepress shortcode for the ingredients is [table id=71 /] and I have added the following Print-O-Matic shortcode,

    [print-me target=”.print-this-content”/] to the same text box/ row but this just prints a blank page with the recipe title.

    I want to be able to print both the ‘What you need column’ (which is a Tablepress table) and the ‘How to make it column’ (which is a text box) together.

    PS I am using Highend Childs theme.

    David

    Hi,

    sorry for the mix-up of “ping” and “print”. My bad ??

    Could the reason for this be that TablePress only registers its Shortcode in the frontend (i.e. is_admin() === false)?

    Regards,
    Tobias

    Plugin Contributor twinpictures

    (@twinpictures)

    to print out just the ingredients table, simply try using the correct target like so:

    [print-me target=".tablepress"/]
    

    To print out the entire recipe, the entry-content would need to be targeted:

    [print-me target=".entry-content"/]
    
    Thread Starter lymph1

    (@lymph1)

    Hi, thank you for your help. The ingredients table print code works well. ?? The entire recipe code is trying to print the entire page rather than just the How to Make it Section. How do I target it at certain sections only or at two or more sections i.e. the ingredients table and the How to Make it section?

    David

    Plugin Contributor twinpictures

    (@twinpictures)

    the entire row would need to be assigned a unique ID or class. It seems that you are using a visual page builder. See if there is the possibility to add a class or id to the row element. If you let us know which visual editor you are using, we can maybe help you with a more detailed solution.

    Best of luck!

    Thread Starter lymph1

    (@lymph1)

    Hi, I am using WPBakery Page Builder.

    David

    Plugin Contributor twinpictures

    (@twinpictures)

    OK, we just installed WPBakery Page Builder and yes, you can provide a custom css name to the column settings. Simply edit the column and enter a unique name under the General Tab, section titled: Extra class name

    This should be the column that holds both the ingredients list and the How to Make section.

    Let us know if you get this resolved, or if you need further assistance.

    Thread Starter lymph1

    (@lymph1)

    Hi, this nailed it. I added an extra class name to the row that contained the ingredients and method columns and then added the print me target with the extra class name and it loved it!

    Thanks for your help ??

    Plugin Contributor twinpictures

    (@twinpictures)

    Glad it worked out and thank you for marking the thread as resolved.
    If you are happy (and you know it) consider leaving a wee review!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Using Print-O-Matic with TablePress’ is closed to new replies.