WordPress.org

Ready to get started?Download WordPress

Forums

how to call a post with the same name but +1 (Post calls Post1 to also display) (1 post)

  1. Stephiew
    Member
    Posted 1 year ago #

    Hello everyone,

    I'm working on my company's website and trying to figure out how to get an "aside" type thing to work using an older version of WordPress (our server will not work with the new WordPress)
    What I want to do is have a single post titled "PERSON'S NAME" being their profile page, and have a second post titled "PERSON'S NAME 1" or somesuch, which will have resume information and will display on the side of the main post. The whole thing needs to be PHP so that a less experienced user can simply create PERSON'S NAME and PERSON'S NAME 1 and have it lay out correctly.
    Logically, I think there should be a way of doing a
    get_the_post("post_name"-1)
    or something that would do this, but I haven't gotten it to work and haven't seen where I can get help doing this. Can anyone here give me a hint?
    Or, if this is impossible, how to fetch a post with the same name but from a different category?

    Thank you,

    Stephanie

    (I know there are plugins that could do this, but since we are running old WordPress (yes this is bad but we're kinda stuck), most plugins don't work and we are trying to avoid them)

Topic Closed

This topic has been closed to new replies.

About this Topic