Forums

Multiple content blocks
[resolved] Can't use in on non-singular pages/posts (3 posts)

  1. Jack Tummers
    Member
    Posted 2 years ago #

    I want to use this on my index page as well, and also on my archive pages. So I need this to work inside the loop. Anyone with an idea how to do this? I also tried the Secondary HTML Content plugin, but that has the same problem.

  2. joffff
    Member
    Posted 2 years ago #

    Hi Moxie,

    Did you get this resolved? I'm also looking for a way to use Secondary HTML Content within the Loop.

  3. tamlyn
    Member
    Posted 2 years ago #

    You need to pass the current post's ID to the function like so

    the_secondary_content(1, $post->ID);

    where 1 is the number of the HTML content block you want to show.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic