• My theme has a the_content call to display my blog posts, but i also have pleanty of plugins that automatically attach something on the end or beginning of each post. I want to format this better, so i’m wondering what piece of code i have to edit, cause i don’t know where these plugins are attaching themselves when i tell them to automatically attach on the end of the posts.

    Current layout of the_content:
    <inpost ad at benginning of post>
    <post>
    <give post star rating>
    <inpost ad at the end of post>
    <social media buttons>
    <related posts>

    I want to mix up the order a bit, but all the plugins i’m using for funcitons like rating/inpost ads seem to just fight for position within the_content.

    I hope i’ve been clear, but no matter how much manual tagging i do in the theme itself, $content is displayed with the plugins in a mixed up order.

Viewing 4 replies - 1 through 4 (of 4 total)
  • the_content and the_excerpt just plop the post in; the plugins themselves are set up to appear in a certain order either before or after the post, depending on how they are written. You’ll likely need to edit the plugins themselves. But check each plugin’s settings in the WP dashboard. A well written plugin will have settings to edit there, rather than forcing you to strong-arm the plugin.

    Thread Starter timosai

    (@timosai)

    the plugins just have options for placement above or below the content.
    but now that i have a few of them after the post, i wanted to change the position relative to each other.

    Current layout of the_content:
    <inpost ad at benginning of post>
    <post>
    <give post star rating>
    <inpost ad at the end of post>
    <social media buttons>
    <related posts>

    Desired layout of the content:
    <inpost ad at benginning of post>
    <post>
    <social media buttons>
    <inpost ad at the end of post>
    <give post star rating>
    <related posts>

    You might have to roll up your sleeves and dive into each plugin to see where it’s stashing its output.

    I have put together a set of social buttons to include them into the head of each post, to be visible on the begining, and not on the end of each post.

    I like to have a set of social buttons right under the blog post title. Similar like the https://blog.hubspot.com/ blog has it done!

    I have try to ad this into the head of the single post php but it does not work. It smashes the whole format. I have try to do this with tables and without, it does not work.

    Can anybody explain to me how to ad this set of buttons direct under the head of each post?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change the way the_content is displayed’ is closed to new replies.