WordPress.org

Support

Support » Themes and Templates » Untitled » [Resolved] Using featured content and showing recent posts on homepage

[Resolved] Using featured content and showing recent posts on homepage

  • 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/

Viewing 15 replies - 1 through 15 (of 15 total)
  • designsimply

    @designsimply

    Member

    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.

    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.

    designsimply

    @designsimply

    Member

    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?

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

    designsimply

    @designsimply

    Member

    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?

    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.

    It isn’t a language issue. :/

    designsimply

    @designsimply

    Member

    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.

    designsimply

    @designsimply

    Member

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

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

    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!

    Caroline, it’s worked so good! Thank you a lot! 😀

    Fantastic! Glad we could help. 🙂

    designsimply

    @designsimply

    Member

    Caroline, you are awesome!

    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

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Resolved] Using featured content and showing recent posts on homepage’ is closed to new replies.
Skip to toolbar