Viewing 5 replies - 1 through 5 (of 5 total)
  • Joseph

    (@jpe24524)

    I can see the meta box (the one with date, category, tags and author?) in both post list and single page.

    Thread Starter DanMichel

    (@danmichel)

    yeah, they are visible on both pages, but the proper information is not showing on the index, and is only showing on the top post. here is the updated pastebin https://pastebin.com/N3t9psZD

    Joseph

    (@jpe24524)

    You need to place that in loop.php.

    Thread Starter DanMichel

    (@danmichel)

    if i put it in ‘loop’ it wont align to the top right of my post, it will go bellow the post

    Joseph

    (@jpe24524)

    You’ll have to put it in loop.php, there’s no other way. You’ll also need to modify style.css so that the meta boxes are in the correct position.

    At the moment it’s only displaying one box with the info of the last post because the code is called only once after WordPress has looped through all the posts. It needs to be placed inside the loop.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Meta Box Showing in Single Post Correctly, but Not in the Index’ is closed to new replies.