geoff67
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Two Blogs Sharing ElementsYou could password-protect them, and give the password to your users… but there’s probably a better way.
Forum: Fixing WordPress
In reply to: Two Blogs Sharing ElementsYou can keep both posts and pages private by checking the box on the right under the Publish Status.
But if you want to install separate blogs, start here: https://codex.www.ads-software.com/Installing_Multiple_Blogs
Forum: Fixing WordPress
In reply to: Permalinks not workingWhooami is assuming you have FTP access, and know how.
Forum: Fixing WordPress
In reply to: MAC OS browser problemI’m assuming the host is a PC. Are you connecting to the IP address from the Mac?
If the PC can connect via https://computer2/wordpress/, the Mac might need to connect via https://192.168.0.102/wordpress/.
Forum: Fixing WordPress
In reply to: Using a gravatar image within author.phpI’m having similar difficulties. When placed outside of the loop, the gravatar code returns an incorrect image, but when placed inside the loop, it attaches a gravatar to each post listed for that author.
The code below is what I originally tried, which returns the incorrect gravatar.
<?php get_header(); ?> <?php get_sidebar(); ?> <div id="content" class="narrowcolumn"> <?php if(isset($_GET['author_name'])) : $curauth = get_userdatabylogin($author_name); else : $curauth = get_userdata(intval($author)); endif; ?> <h2><?php echo $curauth->display_name; ?></h2> <span class="alignright" style="margin-left:1em;"><?php echo get_avatar( get_the_author_email(), $size = '96' ); ?></span> <dl> <dt>About the author</dt> <dd><?php echo $curauth->user_description; ?></dd> </dl> <h4>Posts by <?php echo $curauth->display_name; ?></h4> <ul> <!-- The Loop --> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"> <?php the_title(); ?></a>, <?php the_time('d M Y'); ?> in <?php the_category('&');?> </li> <?php endwhile; else: ?> <p><?php _e('No posts by this author.'); ?></p> <?php endif; ?> <!-- End Loop --> </ul> </div> <?php get_footer(); ?>
I tried $curauth->gravatar, which I suspected would not work (and didn’t). I even downloaded the Gravatar plug-in, hoping that would allow me to place the code outside of the loop; but that failed as well.