• 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

What Is The Featured Post Archive Link?

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 › What Is The Featured Post Archive Link?

This topic is: not resolved

Tagged: archive link, featured posts

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 4 months ago by patrickr.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 31, 2017 at 12:30 am #200294
    patrickr
    Member

    How do I programmatically create the featured post archive link?

    Cheers

    January 31, 2017 at 4:11 am #200300
    Brad Dalton
    Participant

    Link to it please.


    Tutorials for StudioPress Themes.

    February 1, 2017 at 12:44 am #200351
    patrickr
    Member

    I'm developing locally, so I can't link to it.

    I'm using the Genesis Sample theme, and built in "Featured Post" widget. I'd like to know how to generate the archive link for the current "featured post".

    Thanks, Brad.

    February 1, 2017 at 2:23 am #200352
    Brad Dalton
    Participant

    There is a show category archive link in the widget settings. Is that what you mean?


    Tutorials for StudioPress Themes.

    February 1, 2017 at 9:48 am #200366
    patrickr
    Member

    Almost. The link that's generated for "show category archive link" is for the Featured Posts category. I want the archive link for the latest post in the Featured Posts category.

    Something like:

    $wpdb->get_var( "SELECT ID FROM $wpdb->posts WHERE post_title = '" . $posttitle . "'" );
    $getpost= get_post($postid);

    Where instead of searching bypost title, I'm searching for the latest post in the Featured Posts category.

    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