• Hi All,

    Thanks to the snippet:
    “Moving single post metas to the bottom of the post”
    https://themesandco.com/snippet/moving-single-post-metas-to-the-bottom-of-the-post/

    and creating my “class-content-post_metas.php” in my CHILD Theme; I’ve been able to move the post meta to the bottom of the single post and removes some of the extraneous text (Category/Tag headers, “by”, “post on” etc.).

    But what’s the best/cleanest way to:
    1. Leave the Author and Post date meta at the top while placing the Tag and Category meta at the bottom of not just the single post but the post lists (category and search results) as well?

    2. Edit the Header text for Author Archives post list and Monthly Archives associated with the calendar?
    (I’ve been able to change all the others except those two thanks to the snippet “Changing the title of the categories archive pages” and its comments:
    https://themesandco.com/snippet/changing-the-title-of-the-categories-archive-pages/ )

    In both cases I’m just unsure as to the proper syntax and if the code should be placed in the CHILD‘s “Functions.php” or the
    CHILD‘s “class-content-post_metas.php”

    As always, any all suggestions will be appreciated.

    Cheers!
    jmw

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nothing wrong with moving a core file into your child theme and changing it. BUT. If that core file changes in next update with an improved feature, how will you keep your CT copy in line?

    So Czr thrives on the Hooks API and adding code to functions.php is the way to go. See this too.

    Thread Starter GreenGriot

    (@greengriot)

    DB,

    Good point,
    I see you updated the “Remove Post Meta Details snippet so that it works again.

    https://themesandco.com/snippet/remove-post-meta-details/

    I can use that instead of my “class-content-post_metas.php”. The snippet not working was the only reason why I created it.

    From the other posts and snippets I figured hooks were the way to go but I’m just unsure which hooks I use or the proper syntax to separate the metas I want on top from the one’s I want on the bottom. The “moving to the bottom” snippet makes it look like it’s all or nothing. Or it is nested in such a way that I don’t understand yet.

    I’ll figure it out.

    Thanks,
    jmw

    Thread Starter GreenGriot

    (@greengriot)

    If anyone has had success with this feel free to share

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Post Meta at Both Top & Bottom of Single Post and Post Lists’ is closed to new replies.