WordPress.org

Forums

Untitled
[resolved] Using featured content and showing recent posts on homepage (16 posts)

  1. brunogdb
    Member
    Posted 1 year ago #

    Good night, folks
    I have installed this theme today on my new blog, and I selected a tag named "destaques" to select featured posts. I wrote a new post and I selected it as a featured content, and it works perfectly, but I can't see the featured posts on the homepage, only on the slider. How can I solve it? I want to see the featured posts on home and slider.

    Blog link: http://debatedebar.com.br/

  2. designsimply
    Member
    Posted 1 year ago #

    I tested this using WordPress 3.9.1, Jetpack 2.9.3, and Untitled 1.1.2, and the posts that appear in the slider also appear in the page below.

    I checked http://debatedebar.com.br/ and I don't see a slider working there right now.

  3. brunogdb
    Member
    Posted 1 year ago #

    I turned off for a while to test another thing, sorry. I turned it on for now, and the post "Hoje é dia" only appears on slider. Seems like the theme have a kind of filter to remove posts from the recent posts loop to put only in the slider.

  4. designsimply
    Member
    Posted 1 year ago #

    Here's my test: https://cloudup.com/cv-412vn17d

    In Settings > Reading, I have "Your latest posts" selected for the first option.

    In Appearance > Customize > Featured Content, I have the tag name "featured" added and those are the posts I see in the slider as well as in the main content area.

    Is that how your site is set up?

    Do you have any other settings changed that could be causing the difference?

  5. brunogdb
    Member
    Posted 1 year ago #

    It's everything like yours and I haven't activated another plugin or code changing something in post area.

  6. designsimply
    Member
    Posted 1 year ago #

    I'm not sure what to tell you then! You must have something setup differently. :)

    Let's step back and double check some things. First, can you check to see if you have all the same versions as I do? I used WordPress 3.9.1, Jetpack 2.9.3, and Untitled 1.1.2

    Next, I wonder if a language setting is the difference. Could you change your settings to English temporarily in the main blog settings to see if that causes a change?

  7. brunogdb
    Member
    Posted 1 year ago #

    WordPress 3.9.1, Jetpack 2.9.3 and Untitled 1.1.2. It's all the same! hahaha

    Ok, I'll do it. If nothing change, I will look better. It's weird.

  8. brunogdb
    Member
    Posted 1 year ago #

    It isn't a language issue. :/

  9. designsimply
    Member
    Posted 1 year ago #

    It was worth a check! I've had people tell me sometimes that language settings can cause unexpected behavior and without any other clues, and because the theme is working differently for me, the rest will be guesses. Sorry about that! The best I can do is test and tell you my steps and setup, and try to guide you from there.

  10. designsimply
    Member
    Posted 1 year ago #

    I will also try to double check that my steps/settings are correct with a colleague some time today, just to make sure. :)

  11. brunogdb
    Member
    Posted 1 year ago #

    It's too much weird! I'll look better for issues, but, thank you! You helped me a lot! :)

  12. Caroline Moore
    Member
    Posted 1 year ago #

    Howdy!

    Jetpack Featured Content automatically filters out featured content posts from the main query. You can remove the filter with the following code (as always, we recommend doing this in a child theme's functions.php):

    /**
     * Do not exclude the Featured Posts from the main blog query
     */
    function mytheme_add_featured_content_to_blog() {
        remove_action( 'pre_get_posts', array( 'Featured_Content', 'pre_get_posts' ) );
    }
    add_action( 'init', 'mytheme_add_featured_content_to_blog', 31 ); // Immediately after FC hooks in.

    I hope this helps!

  13. brunogdb
    Member
    Posted 1 year ago #

    Caroline, it's worked so good! Thank you a lot! :D

  14. Caroline Moore
    Member
    Posted 1 year ago #

    Fantastic! Glad we could help. :)

  15. designsimply
    Member
    Posted 1 year ago #

    Caroline, you are awesome!

  16. Chhatrapal Singh Shekhawat
    Member
    Posted 8 months ago #

    Thank you so much @Caroline Moore

    really this code resoled my problem in only 2 mints :) and i am searching about it from last 5 hours

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.