[wordpress] One post but different content for specific categories

Discussion in 'PHP' started by [ DigitaL ], Dec 10, 2014.

  1. #1
    Hi,
    Thanks in advance for help.

    I want to show different content in specific categories from one post.

    For Example

    I make post then
    In Category 1 display this text: "Hi"
    but while browsing category 2 display text: "Hello" from same post.

    Thanks
     
    [ DigitaL ], Dec 10, 2014 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,893
    Likes Received:
    4,553
    Best Answers:
    123
    Trophy Points:
    665
    #2
    create a custom post type that has additional text editing areas (and possibly titles) and then you can edit them all on the one page.
     
    sarahk, Dec 10, 2014 IP
  3. [ DigitaL ]

    [ DigitaL ] Member

    Messages:
    83
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    48
    #3
    Hi, Thanks for reply.

    Do I have to install plugin for custom post type? If yes which is the best?

    Sorry I am new to wordpress.
     
    [ DigitaL ], Dec 10, 2014 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,893
    Likes Received:
    4,553
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Kindof, to do what you want you'll need to write one - your requirement is extremely messy and I can't imagine you'll find it already out there. If you were my client I would be wanting you to explain why you want it and I'd be looking for all the reasons why it's a bad idea. From what little I know you basically want to spin content based on the category that is selected.
     
    sarahk, Dec 10, 2014 IP
  5. IG2010

    IG2010 Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    195
    #5
    It looks like it, I used a plugin once to create custom post type, but the plugin was messing with the theme (a few actually) so I gave up, what about a spinning content plugin? would it be easier? never tried one of those before
     
    IG2010, Dec 10, 2014 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,893
    Likes Received:
    4,553
    Best Answers:
    123
    Trophy Points:
    665
    #6
    custom post types shouldn't mess with a general purpose theme - they're no big deal.

    What the OP wants to do though is have different versions of the same post and to be able to edit them all at once. Crappy concept but do-able. He'd be better off just having one post that is decent quality.
     
    sarahk, Dec 11, 2014 IP
  7. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #7
    What I old do, if this is an actual requirement, is just make multiple posts and shoe the correct post for the category. Why you need this, I have no idea, but it sound like something "smart" thought out while "not sober".
     
    PoPSiCLe, Dec 11, 2014 IP
  8. IG2010

    IG2010 Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    195
    #8
    It was a custom theme with page and post builder, when I used that plugin I could not use the onsite page builder anymore
     
    IG2010, Dec 11, 2014 IP
  9. leonidus1981

    leonidus1981 Banned

    Messages:
    76
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    53
    #9
    Google surely woun't be pleased with such substitutions... IMO
     
    leonidus1981, Dec 11, 2014 IP