Hello, currently the post meta are arranged in this que "post date", "author name", "leave a comment link" ... How I can re arrange them in the following order "author name", "post date", "leave a comment link"
Thanks in advance
You can do it by changing the default priority with a filter. Lowest priority will run first.
add_filter( 'beans_post_meta_items', 'example_sort_meta_items' );
/*
* Sort meta items. (filter)
*/
function example_sort_meta_items( $meta ) {
$meta = array (
'author' => 10, // priority
'date' => 20, // priority
'comments' => 30 // priority
);
return $meta;
}
Jozi B@@ WOW!!! thanks man ... I love it ...
Jozi B@@ Sorry for asking this type of question ... Can you please help me on this regard too? A little hint will be very helpful ... Thanks in advance ... https://community.getbeans.io/discussion/how-to-create-a-custom-page-template-in-beans/