• Resolved Freek_U

    (@freek_u)


    Hi Charlie,

    I’m running into a few questions/issues wrt changing the markup of movies/collections:

    1. Where can I change the markup of a collection page created using the [movies collection=”..”] shortcode? I found that _post.php is used for the individual movies on a automatically generated collection page (http://url/?collection=…), but I can’t find anything similar for the page created using the shortcode
    2. I’ve tried adding a single-movie.php, but it keeps on using single.php. Do I need to change something else somewhere?
    3. Would it be possible to list movies, filtered by data in a custom field? Reason: I’d like to use the plugin for a movie theater and would like to list the next 3 screenings, and list all movies sorted by their score (between 0.00 and 10.00). I could tackle the first by manually maintaining a collection, but maybe there’s easier ways to do it..?

    I hope to figure out most of it by myself, but I need some directions as to where to look at 🙂 I’m using a premium theme from Yootheme, and added the custom fields using the Advanced Custom Fields plugin.

    Thanks!
    Freek

    https://ww.wp.xz.cn/plugins/wpmovielibrary/

Viewing 1 replies (of 1 total)
  • Hi Freek_U,

    Sorry for taking so long to answer you!

    1. The plugin uses a template that you can overload, views/shortcodes/movies.php. Just create a wpmovielibrary directory in you theme’s folder, copy the folder structure above and edit the movies.php file to your needs 🙂 I’m not sure there’s a way to narrow the modifications to the shortcodes using specifically a collection="..." parameter, though, but that would be an idea for a future release.
    2. It’s possible that your theme relies on content-{$something}.php template files, in which you probably should take a look at the content-single.php file and test for post type to add you custom part.
    3. There’s not direct way to do this right now, though movies are filterable through meta URL (see http://demo.wpmovielibrary.com/movies/date/2000-2010/ for instance), but that’s something that will be possible in a future release, at least in the grid, probably via other Shortcodes too.

    Hope that helps you a bit! Let me know if you miss anything else.

Viewing 1 replies (of 1 total)

The topic ‘Layout questions custom fields’ is closed to new replies.