• Hi. I need to print a pdf on all blogs filtered by a custom query, say “All my favourites” or “My Recipe Collection” or so. Would that be achievable with your plugin ?

    Thanks. Peter

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michael Nelson

    (@mnelson4)

    Hi @kepptenkuck, how if you’re using categories or taxonomies, you can filter by them in both PMB’s Quick Print and Pro Print.

    Otherwise, you can use Pro Print and manually search for the posts and add them individually.

    See this user manual entry and it’s videos for details: https://printmy.blog/user-guide/getting-started/6-choose-project-content/

    Does that help?

    Thread Starter kepptenkuck

    (@kepptenkuck)

    Instead of manually putting the blogs together, I would need to do it programmatically, either with a custom query or with code to call a function or so. The user should be able to print a pdf with all favourite blogs for example. There’s no admin panel.

    Plugin Author Michael Nelson

    (@mnelson4)

    Hmmm @kepptenkuck that sounds good but a bit labour-intensive.

    Print My Blog (PMB) doesn’t currently support such a custom query in Quick Print, which I think is what you’d want.

    You’ll probably need to hire a developer (or learn it yourself) to write some custom code for you (probably put it in a custom plugin), and create pull requests on PMB’s github repository for any adjustments that might be needed in the plugin.

    Here’s an overview of what will need to happen:

    • add a link somewhere on your site that users will click to create this custom print page based on the custom query
    • it will direct users to the regular PMB Quick Print print page, except also add a query argument to the URL to indicate to use the custom query
    • when PMB sends the Ajax requests to the REST API, it will need to include an extra parameter indicating to use the custom query
    • on the WP REST API endpoint, watch for that extra parameter, and if present, customize the query to return whatever it is you’re wanting

    jobs.wordpress.net might be a good place to look for a developer to do this sort of thing.

    I hope that helps. I can’t write this plugin for you, but I can try to answer any developer questions you or your developer may have.

    Does that make sense?

    Thread Starter kepptenkuck

    (@kepptenkuck)

    Makes sense, thanks a lot.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create a pdf from blogs filtered by a custom query’ is closed to new replies.