WordPress Posts Multi Author without using plugin
WordPress Posts Multi Author without using plugin
WordPress Posts Multi Author without using plugin
You can use <?php echo get_the_author(); ?> And if you would want to use conditional logic you could use <?php if(get_the_author() === ‘Author Name’) { ?> Do some HTML <?php } ?>
WHen I click on post author (on frontend) it doesn’t go to author page
Filter Author Link for Numerous Authors for each to go to unique page
You could achieve this with ACF and add a meta field that is the ‘Reviewer’ that is set after it’s reviewed. Then you can all the ACF field on the front end as per their docs.
To check if s/he is the right author, you can use is_author() function using the author id or name as parameter. And, depending on how you set up the settings for displaying author box or last updated. You can put your settings. I am considering your settings are in options table. So I will use … Read more
a similar question was asked before, if you take a look here obviously for 1 column use ‘post_status’ => ‘published’ and for the other column call ‘post_status’ => ‘draft’ and set number of posts to show to 8 for each column
When you’re in the loop, you can use get_the_author() to get the author’s ‘Public’ name. Alternatively, you can use get_the_author_meta( ‘ID’ ) in the loop to get the author ID. So, modifying your psuedo-code: if ( 2 == get_the_author_meta( ‘ID’ ) ) { echo ‘<h2>John’s Perspective</h2>’ }
So if i understand correctly you want to let the authors style their profile and save the data in a way that every visitor will see their saved style, kind of like twitter lets you style your own author page. If so then using cookies won’t help you here since cookies are user specific and … Read more
Hacky way of doing it: global $wpdb; $min_posts = 5; // Make sure it’s int, it’s not escaped in the query $author_ids = $wpdb->get_col(“SELECT `post_author` FROM (SELECT `post_author`, COUNT(*) AS `count` FROM {$wpdb->posts} WHERE `post_status`=’publish’ GROUP BY `post_author`) AS `stats` WHERE `count` >= {$min_posts} ORDER BY `count` DESC;”); // Do what you want to $author_ids … Read more