Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello LightBen,

    Hope you’re well! 🙂

    May I know the theme that you are using? Also if possible share the website’s url or show some screenshot so I can help you better and faster.

    Looking forward for your reply! 🙂

    Best Regards,
    Calvin

    Thread Starter LightBen

    (@lightben)

    Hi Calvin,

    I’m using Bootstrap flat theme.

    No url available sorry.

    No need of screenshot, it’s just my loop and in the excerpt we should have a video but it’s not here, it’s visible only when we open the full article

    Thanks =)

    Hello LightBen,

    Sorry I forgot to ask if you could link to the theme’s homepage. I found two “bootstrap flat” theme. My bad.

    Please advise,
    Calvin

    Thread Starter LightBen

    (@lightben)

    Sorry I should have been more precise =)

    http://xtremelysocial.com/wordpress/flat/

    Thread Starter LightBen

    (@lightben)

    Up to my topic =)

    Hello LightBen,

    Hope you’re well and happy new year! 🙂

    Thanks for linking me the theme you are using but I want you to be aware that bumping your thread will not get it to be noticed. Read more about it here: http://codex.wordpress.org/Forum_Welcome#No_Bumping.

    Option 1:

    Instead of adding your video to your post excerpt or in the list of posts. I suggest you take a screenshot of the video then set it as featured image. In this way no code modification is required.

    Option 2:

    Override index.php(if you are planning to put this on homepage – recent posts type of page ). Use child themes for any customization you will made. Read more about it here: http://codex.wordpress.org/Child_Themes. To override the index.php just simply create a new file inside the child theme folder and named it index.php ( same process for every file you want to override in the future ) then paste the code you will find here: https://gist.github.com/calvincanas/68fd179e35022d11a6fc

    Let me know if it works!

    Take care,
    Calvin

    Thread Starter LightBen

    (@lightben)

    Hi,

    Thanks for your answer but I would prefer a way a bit cleaner than that.

    I heard about “filter” in the excerpt, may be it is that? There is a filter in the excerpt with parameters I could eventually change?

    Hello LightBen,

    Hope you’re well! 🙂

    On Option 2:

    You can just create a template that you can select when you create the page. The reason that I include all code for your need on one file is that the other way would need a lot of file modification.

    When you said filter I assume you are referring to the WordPress function add_filter which I also considered regarding with this issue. Yes, it would be a lot cleaner than my solution because it simply enables shortcode on excerpt but the problem with this setup is that if you embed the youtube video on the middle or end of your post body it will not render the video because excerpt limit the character they show on a post list ( I think 25 – 50 characters ) .

    I hope I am making sense here. Let me know if you still need help or clarification.

    Take care,
    Calvin

    Thread Starter LightBen

    (@lightben)

    Sorry, I think I’m not good enough to understand your answers… I tried also this solutions: http://bacsoftwareconsulting.com/blog/index.php/wordpress-cat/how-to-preserve-html-tags-in-wordpress-excerpt-without-a-plugin/ and another similar one I don’t find but the result is that I don’t get any content in the excerpt so something is wrong with that also…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Video hidden in the excerpt’ is closed to new replies.