SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    May 2013
    Posts
    203
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Custom Fields that setup - in a wordpress Post, how do apply for all Posts, even futu

    Custom Fields that setup - in a wordpress Post, how do apply for all Posts, even future created?
    apply = activate
    i activate but only for a single post... i want for all, well?
    posted and here but not replied:
    http://wordpress.org/support/topic/c...1#post-4971897

  2. #2
    Avid Logophile silver trophy
    ParkinT's Avatar
    Join Date
    May 2006
    Location
    Central Florida
    Posts
    2,343
    Mentioned
    192 Post(s)
    Tagged
    4 Thread(s)
    Welcome to the forums @lse123 ;

    I am confident you can find the solution to your problem among the huge pool of talent and experience we have here.
    But, in order to get a better response, can you be a bit more descriptive about your problem?
    Don't be yourself. Be someone a little nicer. -Mignon McLaughlin, journalist and author (1913-1983)


    Git is for EVERYONE
    Literally, the best app for readers.
    Make Your P@ssw0rd Secure
    Leveraging SubDomains

  3. #3
    SitePoint Addict
    Join Date
    May 2013
    Posts
    203
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Custom fields in a post ... you know what are - assign key/values to a post? how set 5 such have all posts and future posts?

    I want when insert post programmatically eg from phonegap app or other locally... to shown such in new posts...

  4. #4
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,497
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by lse123 View Post
    I want when insert post programmatically eg from phonegap app or other locally... to shown such in new posts...
    Use add_post_meta() to add a custom field if you're inserting a post using your code.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  5. #5
    SitePoint Addict
    Join Date
    May 2013
    Posts
    203
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    This is the only way create such fields for new Posts?
    There isn't any setting for theses fields to exist [for all new posts in future] without create with php script each time?

  6. #6
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,497
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Nope, you will need to assign custom fields to each post you create, they're not applied automatically. Just like you add categories & tags to a post when you create it, they're not applied automatically.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  7. #7
    SitePoint Addict
    Join Date
    May 2013
    Posts
    203
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    this php script must reside in php wordpress file? or in my custom php file?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •