1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

writing custom WP post template

Discussion in 'PHP & Perl' started by Mutikasa, Nov 27, 2011.

  1. Mutikasa

    Mutikasa Power Member

    Joined:
    May 23, 2011
    Messages:
    575
    Likes Received:
    212
    Hi,
    I want to mirror some blog and need exactly the same formatting. Since copy paste and autoblog rss feed doesn't work quite well I need custom solution.
    The blog I want to mirror has always the same kind of post, music, like this:
    Arist: "artist"
    Album: "album" and so on....

    Now, i want to make my template that uses rss feed or whatever possible and generate posts on my blog like this:
    Artist: echo $artist
    Album: echo $album and so on...

    i don't have experience in PHP but I will learn as I go, so please direct me for some keywords so I can research further,
    thanks
     
  2. billib

    billib Newbie

    Joined:
    Oct 5, 2009
    Messages:
    25
    Likes Received:
    2
    Occupation:
    Student
    Location:
    Arabic land
    maybe you can do that with regular expression.
     
  3. DocturBluehill

    DocturBluehill Newbie

    Joined:
    Sep 28, 2012
    Messages:
    15
    Likes Received:
    6
    mutikasa, at the moment I am running a little php learning and mentoring group.
    I use the groups questions and their learning process to write an ebook about
    beginning php easily and while writing quality code. I would like to help you, with
    your problem if I can use your problem? :)
     
  4. mcurly

    mcurly Newbie

    Joined:
    Oct 10, 2012
    Messages:
    15
    Likes Received:
    0
    Location:
    France
    I'm not sure to undersand but you can :

    1. Direct update your single.php from your template ?
    2. Create a page template : codex.wordpress. org/Pages#Creating_Your_Own_Page_Templates
    and custom felds : codex.wordpress. org/Custom_Fields
    3. Or create a new post type : codex.wordpress. org/Post_Types but it's more work

    Edit : I can not give you full URls because I'm new member..