Hi,
Is it possible to display a query result in a standard Newspaper block template (e.g. Block 11) by calling a Newspaper function with a result object or array? I don’t really feel appropriate to recreate the Block 11 html structure by hand to display the faceted search results.
What is the proper way to display such query results?
Best regards,
Tibor
Hello abitang,
I suppose that you are referring to the structure of the search template. If you want to change the template for your search page results you have to set it from Theme panel, like this -> http://screencast.com/t/MO5eeyx3
If is not what you mean, please provide more details about your desired changes so I will be able to provide a more accurate response.
Thank you for the message!
Salut Cătălin,
Thank you. No, I wasn’t talking about selecting a template to display search result in but to display my own content (list of contents) in a template provided by the Newspaper theme. Meanwhile I solved my FacetWP issue by using the plugin’s other displaying method, but my question remains open.
Let’s assume I have my own plugin that generates a list of posts and displays that within a content using a shortcode (like a teaser for other contents). Obviously I would like my list to match the look of all the other Newspaper generated lists. Of course I could generate my own html with CSS classes to replicate the selected Block, but it doesn’t seem to be right way to do it. Does the theme provide a function to display a list of posts in a selected Block or Module template (provided by the Newspaper template)?
Best regards,
Tibor
Hi,
I’m not aware about the FacetWP functionality and what ca I say is that also the tagdiv blocks are shortcodes but they are interpreted by the theme so you can set the filter options and other settings. I cannot see an easy workaround for this, as not all the shortcodes are interpreted by the theme and also apply the designed theme layout on theme without custom modifications. Unfortunately I cannot provide you a solution for this, what you could try is to take a look to the code and see how a theme block is designed and try to apply this for your plugin’s shortcodes. Also you can get someone to help you as we cannot provide custom services at this time and plugin implementation is not covered by the theme support – https://forum.tagdiv.com/support-policy-2/
Also maybe the api documentation can help, if you want you can check it here – https://forum.tagdiv.com/the-theme-api/
Thanks!