This website uses cookies to remember you and improve your experience. For more info see our Privacy Policy.

  • About
  • Websites
    • Business Websites
    • Author Websites
  • SEO
  • Portfolio
    • Author Web Design
    • Business Web Design
    • Custom Graphics
    • Logos
  • Services & Pricing
    • Author Website Packages
    • Website Hosting
    • Page Speed Optimization
    • SEO
    • Tyler TX SEO
  • Plugins
    • MyBookTable
    • MyBookProgress
    • MySpeakingEvents
    • Plugin Support
  • Contact
  • Hire Us

Mobile Menu

  • Menu
  • Skip to right header navigation
  • Skip to main content

Stormhill Media

Custom websites for every type of business

Header Right

  • About
  • Websites
    • Business Websites
    • Author Websites
  • SEO
  • Portfolio
    • Author Web Design
    • Business Web Design
    • Custom Graphics
    • Logos
  • Services & Pricing
    • Author Website Packages
    • Website Hosting
    • Page Speed Optimization
    • SEO
    • Tyler TX SEO
  • Plugins
    • MyBookTable
    • MyBookProgress
    • MySpeakingEvents
    • Plugin Support
  • Contact
  • Hire Us

tag order question

Home » Developer Resources » tag order question
Is there a way to specify that one tag should display in order of the date the book was added, but have the rest display normally? Use this code – it worked.function custom_mbt_pre_get_posts($query) {    if($query->is_tax(‘mbt_tag’) and $query->get(‘mbt_tag’) == ‘TAG SLUG GOES HERE’) {        $query->set(‘orderby’, ‘post_date’);        $query->set(‘order’, ‘ASC’);    }}add_action(‘pre_get_posts’, ‘custom_mbt_pre_get_posts’, 50);

« Previous
Next »

Site Footer

Quick Links:

  • Contact Us
  • Pricing & Services
  • Sitemap
  • Terms/Conditions
  • Privacy Policy
  • Business Websites
  • Author Websites
  • SEO Services
(903) 213-5266‬

Copyright © 2023 · Stormhill Media All Rights Reserved.
Website by Stormhill Media
Log in