WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Location of Post Meta Data (10 posts)

  1. el choch
    Member
    Posted 5 years ago #

    Hey, so I'm new, but I've read the manual, and been looking through the forums but can not find an answer to this question:

    Which theme file contains the actual post meta data? I've been trying to change the post meta data content for blog posts, but can not figure out which template file contains it.

    I've found a section on the Main Index Template, but when I edited it, and updated, and then posted, I got got no different results. I'm sure theres something obvious that I'm missing....

  2. t31os
    Member
    Posted 5 years ago #

    http://codex.wordpress.org/Using_Custom_Fields#Displaying_Custom_Fields

    Tags that relate to post meta are explained in detail throughout that page.

    Namingly i think you are looking for..

    <?php the_meta(); ?>
  3. paul2008
    Member
    Posted 5 years ago #

    I have the same question and I don't think it has been answered.
    The post metadata Codex section does not mention where one can find that metada that is edited in the examples.
    Where can it be found in general, or, at least, for the default Kubrick theme?

  4. paul2008
    Member
    Posted 5 years ago #

    Ok, the Kubrick's theme has posts' metadata in single.php

  5. t31os
    Member
    Posted 5 years ago #

    What do you mean, where you can find postmeta.

    The functions are there for when you need them, no post meta exists until you start creating custom fields for your posts. So if no custom fields exist, then there is no related post meta.

    As standard a theme should have ... <?php the_meta(); ?>

    If you want more control over the post meta, then you use the additional functions such as those explained on the codex page.

    If you're still not getting the answer you need, then i'd suggest perhaps re-thinking the question so as to make it clear what you wish to know.

  6. Midkemian
    Member
    Posted 5 years ago #

    i have the same problem. And the question is this:

    Where is the post-meta.css?

  7. atsakiris
    Member
    Posted 5 years ago #

    I also have the same problem... I'll restate the problem -- changes to the post meta data code located in:
    \wp-content\themes\default\image.php

    do not result in changes to the post meta data... why not?
    AD

  8. Mark / t31os
    Moderator
    Posted 5 years ago #

    Again, your question(s) does not make sense...

    All you need to know is covered here.
    http://codex.wordpress.org/Post_Meta_Data_Section
    and here..
    http://codex.wordpress.org/Using_Custom_Fields

    If you can't get the answer you need from either of those, then i'd guess you either misunderstand what post meta is or how it works, or you're asking the wrong question.

    I can't make it any more simple then that... :(

    If there's particular code you have a problem with, then post the code here.
    http://wordpress.pastebin.com/
    And provide a link..

  9. TwilekFanX51
    Member
    Posted 4 years ago #

    Found it guys! The text that is in the example on http://codex.wordpress.org/Post_Meta_Data_Section is located in a file called single.php.

    The path I took to get to it is:
    wp-content/themes/default/single.php

    For me, Line 29 of the file starts the text "This entry was posted."

    Use this in good fun and not to destroy planets.
    -TFX51-

  10. desopolis
    Member
    Posted 4 years ago #

    I think they mean the actual data.
    The postmeta data is stored in a table within the database.
    General data (like the_time()) is returned within the post, custom meta data can be posted as well by default or with specific calls.
    see:
    http://codex.wordpress.org/Post_Meta_Data_Section
    http://codex.wordpress.org/Function_Reference/get_post_meta

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.