Insert content above an embedded video inside Wordress’ php the_content


I’m a long time beginner in WordPress theming (i do bits here and there for myself) and have a question. I run a very large website and i’m trying to redesign it (responsive etc) and have run into a problem…

Basically my content is text then a video or image underneath in every post. I am trying to position my tags underneath the text but before the media so it goes:-

  1. header
  2. text
  3. tags
  4. media

My question is would it be possible to do this.. somehow slip the tags in after the paragraphs but before the media?

Just incase it matters i have this in my Functions file to help control the embedded videos..

 /** embed modifyer */

function video_embed_html( $html ) { 
    return '<div class="innerpostvideo">' . $html . '</div>'; 
add_filter( 'embed_oembed_html', 'video_embed_html', 10 );

Thanks in advance!!

PS i can’t edit every post to do this.. i have almost 10,000 posts

Jason 2 years 2020-10-24T14:10:43-05:00 0 Answers 8 views 0

Leave an answer