custom excerpt is not being shown

One thing that can be happening is if you have added a Read more tag in your content it is overriding the manual excerpt. just check and see if you have <!–more–> tag in your content body. if so remove it. The next thing is the_excerpt()may use auto generated excerpt. it is said in Wp … Read more

Case insensitive ORDERBY in wpquery

As stated above, your orderby parameter should be set to meta_value, not restaurant. Using phpMyAdmin or some other tool, look at your database. With any newer installation of WordPress, your tables should have a collation of utf8mb4_unicode_ci. That means that the table is storing its data in UTF-8 4-byte unicode character set. That “ci” at … Read more

Wp Query sort order from custom MetaBox

With the guidance of @jacobPeattie below is the working example. Once I removed the commas everything was working great. I added number_format to the deal amount to automatically add the commas on the frontend. <?php $transaction = new WP_Query( array( ‘post_type’ => ‘transactions’, ‘paged’ => $paged, ‘posts_per_page’ => 50, ‘orderby’ => array( ‘meta_value_num’ => ‘ASC’ … Read more