• 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

Make specific posts (CPT) always display at the top regardless of set order?

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 › Design Tips and Tricks › Make specific posts (CPT) always display at the top regardless of set order?

This topic is: not resolved

Tagged: CPT, custom taxonomy, loop

  • This topic has 6 replies, 3 voices, and was last updated 9 years, 5 months ago by lucaslem.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 9, 2013 at 7:02 pm #77930
    lucaslem
    Member

    I have a series of custom post types (workshops) with their own custom taxonomy (cat 1, cat 2, etc). I'm using the archive template to display all the posts, and I'm using the categories as menu items to narrow down by category.

    Here is my goal:
    When viewing all posts: be able to set one (or two) specific posts to always display at the top of the list regardless of the order set.

    Bonus for the sake of learning 🙂
    When viewing "cat 1" list = be able to set one or two specific posts to always display at the top of the list regardless of the order set.

    Using framework.

    December 9, 2013 at 7:18 pm #77932
    Brad Dalton
    Participant

    You can't make pages assigned to a CPT sticky however you can add a widget area before posts and add your pages there using the genesis featured posts amplified plugins widget.


    Tutorials for StudioPress Themes & WooCommerce.

    December 9, 2013 at 7:52 pm #77937
    lucaslem
    Member

    Hmmm, I'm not sure I was clear (or I'm misunderstanding your reply). I wish I could link, but I'm developing locally so I will try to be more explicit.

    I'm not trying to add pages to anything. Imagine the blog page where you have all the posts titles listed (with excerpts) in reverse chrono order, but you want one of those to always stick to the top of the list regardless of the time it was posted.

    That's essentially what I'm trying to achieve except that it's not the blog archive but a "workshop" archive.

    December 9, 2013 at 8:04 pm #77941
    lucaslem
    Member

    Ah Brad I think I understand what you meant... the "page" thing threw me. Ok I know how to register widget areas so that should be fine. I'll set this to resolved once I get this coded and confirm that I got it working. Thanks

    December 9, 2013 at 8:13 pm #77942
    Mealtog
    Member

    There has to be a way to show this since there is an option to Show an Author Bio based on category archives. Brad will know this for sure but interesting question. I wonder if any of these hooks will work?

    http://genesistutorials.com/visual-hook-guide/category/category-1/

    Or maybe this plugin can do what you need?

    http://wordpress.org/plugins/genesis-simple-hooks/

    December 9, 2013 at 9:19 pm #77953
    lucaslem
    Member

    Worked a treat thanks. Only issue now is that the posts that show up in widget are also showing up down in the list. Anyway to allow the to only show up in the widget area?

    December 9, 2013 at 10:00 pm #77958
    lucaslem
    Member

    If this helps anyone else, I actually found a plugin which allows me to de *exactly* what I was after with minimal fuss: Post Types Order.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2023 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