Display Posts Shortcode
[resolved] How to display posts ordered by the spanish title? (2 posts)

  1. ebenezer357
    Posted 1 year ago #

    Hi, i'm using this plugin to display my posts in many pages.
    I'm also using the plugin called QTRANSLATE to make my site bilingual (ENGLISH / SPANISH). So, when i type the code on a page to display the posts, it displays them by the english name of the posts. I want to order the posts by the spanish title of the posts.
    What code should i use?
    Someone please help me with this because my boss really wants me to do this.



  2. Bill Erickson
    Plugin Author

    Posted 1 year ago #

    I'm sorry, but I don't know how QTranslate stores the data so can't provide guidance. If they store the title as post meta, you can do something like this:

    [display-posts orderby="meta_value" meta_key="spanish_title"]

    spanish_title needs to be changed to the actual meta_key used by that plugin. I recommend you ask the developers there to guide you the rest of the way.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic