Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author nsp-code

    (@nsp-code)

    Hi,
    You had created a very nice theme, congratulation.
    The way you had it solved looks good. As alternative if the plugin autosort is turned off, you can specify the ‘orderby’ => ‘menu_order’ within queries where the plugin should apply the sort.

    Thanks

    Thread Starter Swashata Ghosh

    (@swashata)

    Hi,

    Thanks for your response and kind words :). Can you tell me how can I detect if ‘autosort’ feature is turned on or off?

    Plugin Author nsp-code

    (@nsp-code)

    Hi
    The autosort is saved within an option, you can use something like this:

    $options = get_option(‘cpto_options’);
    //if auto sort
    if ($options[‘autosort’] == “1”)
    {

    }

    Thread Starter Swashata Ghosh

    (@swashata)

    Hi,

    Thanks, this is exactly what I needed. Also, I understand you have a pro version of this plugin. Do you recommend any other code changes for the same functionality (the one in the first post) with the pro version?

    Plugin Author nsp-code

    (@nsp-code)

    The code will also work with the advanced version.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filter to remove post ordering on some custom queries’ is closed to new replies.