Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter iueweb

    (@iueweb)

    Thanks bdbrown! In our case, I didn’t want to force users to manage slides separately from posts, so I worked my way through a solution provided by Alex on this thread (Thanks Alex!). However that thread was for duplicating the main slider with posts from the same featured category. I was hoping to create a slider for posts from a different category, and it was only a couple additional steps. I’ll include the whole process (modified from Alex’s) below:

    1) Create a child theme (download a sample one from Help dropdown in theme options)

    2) Copy over /inc/featured.php to the child theme and change the name to something new (in this example, I’ll use ‘featured-custom.php’). In this file, remove the two instances of:

    is_home() &&

    from the file.

    On line 10, you’ll need to change ‘ot_get_option(‘featured-category’)’ to the term ID# (let’s say 16) of the term you wish this slideshow to pull posts from. The line will look like:

    'cat' => 16

    * You can find the term ID# in the URL when editing the category.

    3) Copy over /page-templates/child-menu.php to the child theme. Name the php file something new, and also rename the template name at the top of the file to something you want.

    4) In this file, add:

    <?php get_template_part('inc/featured-custom'); ?>

    (change ‘featured-custom’ to whatever you called your file, but exclude ‘.php’) right below where it says:

    <div class="pad group">

    Now create a new page, select your newly created page template under ‘Template’ in the ‘Page Attributes’ panel . Your page should now have a slider featuring posts from your selected category.

    Hope that comes in handy!

    I’m interested in this as well. Additionally, I can’t seem to rearrange the photos even when initially uploading them. WordPress 4.1.

    Thanks!

    Hello! I’d like to do this as well for Authors and Contributors. How could this be accomplished? Thanks!

Viewing 3 replies - 16 through 18 (of 18 total)