How to Add a Video Gallery to Your WordPress Powered Blog

Let’s imagine you want to post your top 10 favorite Youtube videos.

Before each video, you’re probably going to add a couple of paragraphs, to say what makes that video special for you.

When you’re done, you have a very long blog post that doesn’t look any good.

You can solve this problem turning your post into a video gallery, using WordPress nextpage function.

Before anything, take a look at the code on your single.php page, to make sure the following lines are there. If not, add them right below <?php the_content(); ?>:

<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

Hit update and you are done.

Now, into the video gallery itself.

Write your post as usual, add your videos where you want them to appear. When everything is done, add <!--nextpage--> after every video, on html writing mode.

The source of your post will look like this:

Some text

Video 1 embed code

<!--nextpage-->

Some text

Video 2 embed code

<!--nextpage-->

Some text

Video 3 embed code

...

You can check the final result below:

Imagem de Amostra do You Tube

Páginas: 1 2

Artigos Relacionados:

Assine a newsletter, é grátis, basta digitar seu email abaixo e clicar em enviar:

Os comentários estão fechados.