• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Date Display Issue

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Date Display Issue

This topic is: resolved
  • This topic has 4 replies, 2 voices, and was last updated 11 years, 3 months ago by John.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 20, 2014 at 7:34 am #95786
    John
    Participant

    Hi All,

    First time, long time.

    I'm trying to grab some post meta and display data in an ordered list along with font awesome. Everything works fine, EXCEPT the post date keeps displaying ABOVE the list items, not within the list item. Location and Skills works fine. I've tried everything I can think of and I'm stumped. Thoughts?

    Here's my code:

    global $post;
    $the_skills = get_post_meta($post->ID, 'necessary_skills', true);
    $location = get_post_meta($post->ID, 'location', true);
    $pdate = the_time('m/j/Y');

    echo '

  • <i class="fa fa-map-marker"></i> '. $location .'
  • ';
    echo '

  • <i class="fa fa-calendar"></i> '. $pdate .'
  • ';
    echo '

  • <i class="fa fa-pencil"></i> '. $the_skills .'
  • ';

March 20, 2014 at 7:40 am #95788
Brad Dalton
Participant

Can't read your code because it has not been embedded properly.

Please use Github Gists to host the code and embed it here.


Tutorials for StudioPress Themes.

March 20, 2014 at 10:09 am #95818
John
Participant

Sorry, Brad,

Hit submit and had to run out.

Here's the gist:

March 20, 2014 at 10:15 am #95821
John
Participant

..and yes, I did wrap the <li> in a <ul>. The data shows up above the <ul>.

March 20, 2014 at 11:27 am #95844
John
Participant

I figured it out. Thanks

  • Author
    Posts
  • Viewing 5 posts - 1 through 5 (of 5 total)
    • The forum ‘General Discussion’ is closed to new topics and replies.

    CTA

    Ready to get started? Create a site or shop for themes.

    Create a site with WP EngineShop for Themes

    Footer

    StudioPress

    © 2025 WPEngine, Inc.

    Products
    • Create a Site with WP Engine
    • Shop for Themes
    • Theme Features
    • Get Started
    • Showcase
    Company
    • Brand Assets
    • Terms of Service
    • Accptable Usse Policy
    • Privacy Policy
    • Refund Policy
    • Contact Us
    Community
    • Find Developers
    • Forums
    • Facebook Group
    • #GenesisWP
    • Showcase
    Resources
    • StudioPress Blog
    • Help & Documentation
    • FAQs
    • Code Snippets
    • Affiliates
    Connect
    • StudioPress Live
    • StudioPress FM
    • Facebook
    • Twitter
    • Dribbble