• Hello,

    I need to understand whether WordPress offers the ability to use parts of the same piece of content e.g the full article on 1 page but only a section of it on another but this content would be pulled from the same place, rather than having to enter it in twice.

    Please do let me know whether this is possible and how can we accomplish this.

    Thanks for helping.

    Mukul

Viewing 7 replies - 1 through 7 (of 7 total)
  • Can you clarify what you mean by “a section of another post”?

    Anonymous User 7265597

    (@anonymized-7265597)

    if the content is static then using a shortcode would work, you can simply add {shortcode} in other posts to duplicate the content.

    you could write a plugin that looks for shortcodes and the content from a custom post type, where the title was the shortcode and the content was the content to be displayed to the end user. but this might be a little overkill.

    can you explain more your usage/requriements etc.

    Thread Starter Themes4CMS.com

    (@themes4cms)

    What I meant is that lets say a user has written a post with 4 sections. Is there is a way to pull in one of the four sections into another post without having to rewrite that once over again.

    Looking forward to your thoughts.

    Not easily if these 4 sections are simply part of the Page or Post content. In theory, you might be able to come up with a coded method for doing this by grabbing the relevant page or post & parsing its content but I’d imagine you’d need to mark the start & stop positions using some kind of unique comment tag to make this truly flexible.

    This is all based on the idea that, by “section”, you’re referring to something that is a paragraph or more in length. If it’s a lot shorter than that, you could perhaps look at using custom fields.

    Thread Starter Themes4CMS.com

    (@themes4cms)

    Thanks @esmi . I think by section client does mean like a paragraph of text. I am still trying to get more information on how exactly they want it to work.

    you’d need to mark the start & stop positions using some kind of unique comment tag to make this truly flexible.

    I think this is the kind of solution that the client is looking for. Are you aware of plugin that can do this? I saw http://ww.wp.xz.cn/extend/plugins/content-parts/ but not quite sure if this is the right way to get this done.

    Thread Starter Themes4CMS.com

    (@themes4cms)

    Thanks @tcr

    I will try to get more requirements and will update the exact usage scenario.

    I’m not aware of any plugin that can do this myself. Sorry 🙁

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Reusing Content from Posts and Pages’ is closed to new replies.