Tag Info

New answers tagged

1

First method, you are missing the second parameter for get_the_author_meta, which is the ID of the author. Second method, you are using undefined variables.. Check this code, should get you what you want. // Method 1 <ul class="authpcom"> <?php $queried_object = get_queried_object(); $author_email = get_the_author_meta( ...


0

Although I haven't tested it, a quick search revealed this (new) plugin which claims to do what you want: https://wordpress.org/plugins/publish-post-email-notification/ Publish post notification is plugin which will send automatic email when the post is published and approved by WordPress blog. admin have to go to setting and set email template thats it ...


0

In order to remove a specific All() and Pubished() post counts from Posts-editor page you can: // Create a specific hook add_filter("views_edit-post", 'custom_editor_counts', 10, 1); function custom_editor_counts($views) { // var_dump($views) to check other array elements that you can hide. unset($views['all']); unset($views['publish']); ...


1

Use following code to get all users having role Author $args = array( 'role' => 'author', 'number' => '10', ); $authors = get_users( $args ); For all argument list refer this


0

I'm using Gameleon theme. Single.php code line between 224-261: <?php wp_link_pages( array( 'before' => '<div class="pagination">' . __( 'Pages:', 'gameleon' ), 'after' => '</div>' ) ); ?> <div class="clearfix"></div> </div><?php // end of .post-entry / ?> </div><?php // end of #post-the_ID(); / ...


0

Fixed. I used code: <div class="panel callout radius"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), '96' ); ?> <div class="right"> <a href="https://twitter.com/<?php the_author_meta( 'twitter' ); ?>" target="_blank"><i class="fi-social-twitter ...


0

You can display user posts using user's ID. This code might provide a quick sample on how to do it (I have not tested the code). $user_id = $_GET['author_id']; //The Query query_posts("author={$user_id}"); //The Loop if ( have_posts() ) : while ( have_posts() ) : the_post(); the_title(); echo "<br>"; endwhile; else: echo "No Posts!"; ...


0

You can add this in your functions.php: global $wp_rewrite; $wp_rewrite->author_base = "member"; // or whatever $wp_rewrite->flush_rules();



Top 50 recent answers are included