WordPress.org

Ready to get started?Download WordPress

Forums

Moving custom fields with the Arras theme (7 posts)

  1. Ottens
    Member
    Posted 4 years ago #

    Hello all,

    I'm wondering where the location of custom fields is normally defined? I'd like to add a custom field option to the postheader, allowing for an additional credit where it normally gives the author, categories and tags.

    Any help would be much appreciated! Thanks.

  2. MichaelH
    Member
    Posted 4 years ago #

    See Custom Fields for various options.

    Also review Template Hierarchy and Stepping Into Templates if you are going to modify your theme.

    The actual custom field data is kept in the wp_postmeta table (see Database Description) but you shouldn't need that information ;)

  3. Ottens
    Member
    Posted 4 years ago #

    Thanks for the quick response!

    I've tried some of the basics outlined the Custom Fields tutorial but that doesn't get me far enough. Perhaps I'm not as clever with coding as I'd like to think sometimes, but things are a bit complicated by the theme I'm using.

    [url=http://atlanticsentinel.com/]Here's my site[/url]. The theme I'm using is "Arras". The whole of the postheader seems to be defined in library/filters.php and I'm not sure how I can make a specific custom field show up alongside there.

  4. MichaelH
    Member
    Posted 4 years ago #

    Assuming you are talking about the singe post view, in the Arras theme options, under Layout, under Single Post, Single Post Custom Fields, enter the "label" and custom field name you want displayed. Say you have "color" and "style" as your two custom fields you would put:
    Color:color,Style:style

    Where Color is the label you want displayed for the field and color is the name of the custom field key.

    Also the custom fields can be "before" or "after" the post content.

  5. Ottens
    Member
    Posted 4 years ago #

    I actually changed the style of the custom field output in CSS. What I can't find, I suppose, isn't so much to do with the custom fields themselves, but the coding the postheader.

  6. MichaelH
    Member
    Posted 4 years ago #

    Well I tagged this thread with http://wordpress.org/tags/arras so that the theme author might see it.

  7. Ottens
    Member
    Posted 4 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags