• Resolved rotimok

    (@rotimok)


    Hello,
    Firstly, i will like to commend the wonderful job you’d done in creating such useful plugin. it does exactly what it promises and it’s absolutely fantastic.

    I’m working on a movie website where all new post’s feature images automatically show on my homepage slider. But WPMovies don’t show there.
    Can you help me so that it functions like default posts and show up on homepage slider? I don’t mind buying you a beer.

    Thanks in advance.

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter rotimok

    (@rotimok)

    http://www.lagimo.com that’s the website URL if you need any other details, please let me know. Thanks

    Hi rotimok,

    Thanks for the kind words and glad you like this plugin πŸ™‚

    That’s actually an “issue” with the theme rather than the plugin, but since you’re using a premium theme I can’t help you right now; would you mind sending me the theme archive by mail so that I can show you what and where to edit? β†’ support[at]wpmovielibrary[dot]com πŸ™‚

    Thread Starter rotimok

    (@rotimok)

    Thanks for the prompt response Charlie.

    Do you mean archive.php file or the whole, theme.zip file.
    However, i can send any of the above at your request.
    Thanks.

    Yeah I meant the theme’s ZIP file. That’s essentially because the relevant parts can be located in various files, so it’ll be easier than asking you for multiple files πŸ™‚

    Thread Starter rotimok

    (@rotimok)

    Ok, I just sent you the theme zip file. πŸ™‚

    Got it, nailed it πŸ™‚

    In the theme’s header.php file, edit the block at line 169-172 from:

    $queryObjectslide = new WP_query( array(
    	'cat' => $slideshow_category,
    	'posts_per_page' => $slideshow_num
    ) );

    To:

    $queryObjectslide = new WP_query( array(
    	'post_type' => array( 'post', 'movie' ),
    	'cat' => $slideshow_category,
    	'posts_per_page' => $slideshow_num
    ) );

    That should do the trick!

    Thread Starter rotimok

    (@rotimok)

    Wooooow!!!!! Thanks a lot Charlie. you’re a genius. It worked like a charm. I give you an “A+” for your plugin and support service. I’m definitely rating this 5 star. My donation should come through before or by weekend.
    Thanks once again.

    Glad it’s working now! Best luck with your website πŸ™‚

    Thread Starter rotimok

    (@rotimok)

    One observation Charlie, “related posts” carousel only shows blog posts instead of movies. What do I do. Thanks.

    In sevenmag’s functions.php file, add this line right after line 466:

    'post_type' => array( 'post', 'movie' ),

    That’s kind of a generic solution: whenever you see a theme/plugin/widget feature showing posts and not movies, you need to find the code block that handle that feature, find any occurrence of functions/methods like get_posts or WP_Query and make sure there’s a 'post_type' => array( 'post', 'movie' ) in the arguments πŸ™‚

    Thread Starter rotimok

    (@rotimok)

    Works!!!! Thanks πŸ˜€ πŸ˜€

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Custom feature.’ is closed to new replies.