• modeman

    (@modeman)


    Hello, i have this post loop code:

    code link

    And i want to correctly delete the setting “t1” (price meta), maybe can you help me with correcting this code ??

Viewing 1 replies (of 1 total)
  • cleancoded

    (@cleancoded)

    On line 6, remove this:

    t1.meta_value as price,

    On line 18, change this:

    {$table_prefix}posts.ID ORDER BY if(prior = '' or prior is null,1,0), prior DESC, if(date = '' or date is null,1,0), date ASC, if(price = '' or price is null,1,0), price ASC,

    to

    {$table_prefix}posts.ID ORDER BY if(prior = '' or prior is null,1,0), prior DESC, if(date = '' or date is null,1,0), date ASC,

    I also replied on your pastecode link.

Viewing 1 replies (of 1 total)
  • The topic ‘WPDB loop fix’ is closed to new replies.