• Resolved crbarnett

    (@crbarnett)


    Hey,

    Am I missing something?
    I’m trying to get the archives and single book review layouts to look like the sample screen shots do.

    Here’s what I’m working with..
    https://gold.shockingcreations.com/book-review/diet-cults/
    I’d like to show the book cover, star rating, and all the goods I saw in the demo screenshots.

    I’ve added single-book-review.php and archive-book-review.php pages… not sure how to use any template tags to properly pull in the book review data.

    It seems that right now the the_title(); and the_content(); tags are responsible for some of it… it’s not clear how to have more control over the display.

    And for the archives… is that considered the page that the shortcode is on?
    https://gold.shockingcreations.com/get-involved/what-larrys-reading/

    I’d also like to be able to change the display of that.. can I edit the shortcode html output easily?

    thanks in advance. Cool plugin.

    https://www.ads-software.com/plugins/book-review-library/

Viewing 1 replies (of 1 total)
  • Plugin Author Chris Reynolds

    (@jazzs3quence)

    Hey crbarnett —

    Well first of all, I can’t see any of those links because they’re behind your maintenance mode plugin. ??

    The short answer is I don’t have any good template tags (right now) for building a custom template.

    The somewhat longer answer is that there ARE lots of functions in the global namespace that could potentially be used inside themes in the /inc/func.php file. They should all have docblock-style comments in there, so it should be relatively easy (if you’re comfortable digging through code) to figure out how to use them. The addendum to this is that you can look in /views/public.php to see how the shortcodes handle outputting all of that stuff to get an idea of where to put things. Obviously it’ll be different when you’re working with a theme template file directly, but it should be enough to at least get you started. Basically you need to do a whole bunch of get_post_meta checks in combination with the functions in the func.php file and looking at those should help you get an idea of how they are used.

    I’m hoping to have some time to work on this plugin again, so expanding the available template tags (and, potentially, adding hooks) for other developers will be on my list of things to do. If you’re interested in helping out, feel free to drop by the repo on GitHub ?? https://github.com/jazzsequence/book-review-library

Viewing 1 replies (of 1 total)
  • The topic ‘Output HTML and page templates’ is closed to new replies.