ruhelamin
Forum Replies Created
-
Hi @edeesims. We have updated the plugin (version 3.1.3 to 3.2.0) and everything is working now. Thanks a lot for the quick turnaround on this fix, much appreciated.
Thanks @edeesims. I will have a look and get back to you.
Forum: Fixing WordPress
In reply to: Individual Author archive Page shows Posts by All AuthorsSorry completely forgot to mention that yes i do have an author.php file.
For the most part, i’m using the code from ‘Sample Template File’ section in codex page for Author Templates. Just adapted the html a little. The code is now:
<?php get_header(); ?> <div id="bg_5" class="bg_bands"><!-- Background Band 5: Start --> <div class="main_area"><!-- Main Individual Content Area: Start --> <div id="content"><!-- CONTENT: Start --> <h1 style="color:#f60; font-size:40px;">THIS IS AUTHOR.PHP TEMPLATE</h1> <!-- This sets the $curauth variable --> <?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?> <h2>About: <?php echo $curauth->nickname; ?></h2> <dl> <dt>Website</dt> <dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd> <dt>Profile</dt> <dd><?php echo $curauth->user_description; ?></dd> </dl> <h2>Posts by <?php echo $curauth->nickname; ?>:</h2> <ul> <!-- The Loop --> <?php query_posts( array( 'post_type' => array( 'videos', 'events', 'courses', 'articles', 'shorts', 'poetry', 'revert-stories', ), 'paged' => $paged ) // for paging links to work ); ?> <?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; ?> <?php wp_pagenavi(); ?> <?php else : ?> <p><?php _e('No posts by this author.'); ?></p> <?php endif; ?> <!-- End Loop --> </ul> </div> </div><!-- CONTENT: End --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Excellent Andrew, thank you very much.
Solution has been found. See here
Thanks stiand. I couldn’t get this code to work… maybe i was doing something wrong. But thanks to the info from the code snippets you gave, i found similar solutions, which eventually after tweaking and testing, i’ve managed to get it working now.
Thanks very much for the help.
Thanks for this… helped me out. Although for some reason my output date was off by 1 day so i added ‘+ 86400’ in the calculation, which corrected it, thanks to a comment in the stackoverflow link by mrwweb.
Hi. Im looking to create an upcoming events box in the sidebar but haven’t had any luck figuring out how to do this.
I have a custom post type called events and am using ACF plugin to create a Start Date field, among others.
I need the typical functionality where the list is sorted by the Start Date field and an event automatically gets off the list when it’s gone past the start date of that event.
Hope someone can help with this. Thanks.
Well after much reading and experimentation i have achieved the aim. Wasn’t that hard in the end but it’s because i’m a beginner with php. Anyway thanks to you Amy showing me in the right direction, i’ve managed to overcome this problem, much appreciated, Thanks very much ??
This looks a lot more like what i need. Thanks Amy, i will confirm once i’ve implemented it.
Thanks for the quick response Amy.
It’s not just the styling im trying to make different, its also the html structure. If you check the link i provided with the example, it should be very clear what im trying to achieve.