Timeline for Remove the first 5 characters of the_title and orderby that
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 3, 2019 at 20:08 | comment | added | Qaisar Feroz | @user2215732 Here is quick demo: test.attocknet.com/post-order-test on my setup. Created a shortcode from the code and uploaded to server. | |
Mar 3, 2019 at 19:47 | comment | added | Qaisar Feroz | @user2215732 please re-check your code once again, it works without fail on my setup. | |
Mar 3, 2019 at 19:09 | comment | added | user2215732 | sorry, no. It's doing something now but the sort order is neither default nor what I'm looking for. I can't make sense of the sort. Here's a sample of the results produced: 2018-09-14, 2017-11-15, 2017-10-25, 2017-10-16, 2018-09-01, 2018-06-14, 2018-03-01, 2018-04-01, 2018-04-28, 2017-09-27 | |
Mar 3, 2019 at 2:18 | history | edited | Qaisar Feroz | CC BY-SA 4.0 |
added 103 characters in body
|
Mar 3, 2019 at 2:13 | history | edited | Qaisar Feroz | CC BY-SA 4.0 |
added 103 characters in body
|
Mar 3, 2019 at 1:46 | history | edited | Qaisar Feroz | CC BY-SA 4.0 |
added 263 characters in body
|
Mar 3, 2019 at 1:42 | comment | added | Qaisar Feroz | @user2215732 Thanks for pointing out the mistake. Check now . I have updated my answer. Let me know if it works now? | |
Mar 3, 2019 at 1:39 | history | edited | Qaisar Feroz | CC BY-SA 4.0 |
Corrected code
|
Mar 3, 2019 at 0:29 | comment | added | user2215732 |
This seems to be sorting posts by the post date, which I believe is the WP default. The only thing I've changed are the $args (below) and I put the_title(); echo "<br>"; where you have // Show posts . $args = array( 'post_type' => 'z_day', 'post_status' => 'publish', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'day_add_almanac', 'value' => 'yes' ) ) );
|
|
Mar 2, 2019 at 22:51 | history | edited | Qaisar Feroz | CC BY-SA 4.0 |
Improved
|
Mar 2, 2019 at 22:22 | history | answered | Qaisar Feroz | CC BY-SA 4.0 |