WordPress.org

Ready to get started?Download WordPress

Forums

StrapVert
[resolved] featured posts for pages (11 posts)

  1. johnokang
    Member
    Posted 5 months ago #

    I've created pages that use the "Featured" template. I was wondering how I can make certain posts featured on certain pages with the featured template.

    Thanks!

  2. Zulfikar Nore
    Member
    Theme Author

    Posted 5 months ago #

    Hello johnokang,

    Currently the Featured Template works exactly as the selection for the Default Template would work and is used for creating a static front page - basically a place holder for a feature we are looking in to introduce very soon.

    If understand correctly you wish to have featured posts on pages other than the home page? Currently they only appear on the front page but your question has raised some food for thought.

    If the above assumption is correct then please do give us a little time to see what we can do to facilitate the option :)

  3. johnokang
    Member
    Posted 5 months ago #

    Hi Zulfikar,

    thank you for the prompt response. Yes I was hoping that I can have the featured template appear on other pages but displaying posts based on category instead of featured.

    I understand that as of now featured posts are based on if they are sticky so it may be a bit more complicated.

    Another question I was wondering is if there can be more than one row for secondary featured posts.

  4. Zulfikar Nore
    Member
    Theme Author

    Posted 5 months ago #

    You are welcome :)

    Will look in to extending the feature to other pages and categories - may take a little while so do bare with us.

    As for more than one row, yes that is possible with the current configuration. If you navigate to the Customizer under the section marked as "Front Page Content Options" you'll see a text box marked "Number of Featured posts i.e 9, 13, 17". The default is currently set to 5 - that's 1 main and 4 secondary featured posts.

    Set to 9 you'll get 1 main and 8 secondary with the secondary split in two rows of 4. You can have an infinity number of featured posts but that would be a lot of Sticky posts to have.

    Hope that helps for now and hopefully we can get back to you soon on the other requests.

    Regards,
    Zulf

  5. Zulfikar Nore
    Member
    Theme Author

    Posted 5 months ago #

    OK, I've just had a quick toy around with the idea and can offer you a workaround for pages other than the front page - to work this you'll need to create a child theme and then do the following.

    1) Copy the template-featured.php in to your child theme and rename it to say template-featured2.php (also change the template name in the document head too).
    2) Just below the get_header(); part add the following code and save.

    <div class="container clearfix">
        <div class="row" role="main">
    	    <?php get_template_part( 'featured-content' ); ?>
    	</div>
        <hr />
    </div>

    Now when you go to create a page you should have the extra template selectable in the template dropdown section. At this moment only the sticky posts will show up but its a starting point.

    That leaves me to toy around with a custom loop to use categories instead, so its off to work I go :)

  6. Zulfikar Nore
    Member
    Theme Author

    Posted 5 months ago #

    The category selection option will not be available for sometime yet as the coding is an involved process and I'm not able to allocate the required time at the moment.

    Sorry about that.

    Zulf.

  7. johnokang
    Member
    Posted 5 months ago #

    Hi Zulfikar thank you for all your assistance! The features posts have helped tremendously and I really appreciate you investigating the category pages.

    For now I have built my site to not have the feature but I hope that it works in the future!

    -John

  8. johnokang
    Member
    Posted 5 months ago #

    Hi Zulfikar,

    I had another question. Can you help me figure out how to center my single page content? I can't seem to get the header and comments to move. I appreciate any help!

    -John

  9. Zulfikar Nore
    Member
    Theme Author

    Posted 5 months ago #

    Hello John,

    In order to separate topics and aid in solutions being discovered by others could I ask you to raise this as a new topic please?

    Will take a look in to the request and see what I can come up with - will update the new thread as soon as possible.

    Thanks,
    Zulf

  10. jenik77
    Member
    Posted 2 months ago #

    Hello,

    could you tell me where I can finde the section you described above.

    As for more than one row, yes that is possible with the current configuration. If you navigate to the Customizer under the section marked as "Front Page Content Options" you'll see a text box marked "Number of Featured posts i.e 9, 13, 17". The default is currently set to 5 - that's 1 main and 4 secondary featured posts.

    Best wishes, Jan

  11. Zulfikar Nore
    Member
    Theme Author

    Posted 2 months ago #

    Hello Jan,

    Please see my response to your comment on the site :)

    Zulf

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.