roback
Forum Replies Created
-
Forum: Plugins
In reply to: [Front-end Editor] [Plugin: Front-end Editor] No Edit Button appearsCan I PM or email you a user name and PW?
Forum: Plugins
In reply to: [Front-end Editor] [Plugin: Front-end Editor] No Edit Button appearsI have checked all of the things in that post.
Note I have not done the widget one as the pages/posts in question do not use widgets.
Please take a look here and let me know if you notice something I am missing:
https://belizehotels.org/setting/islands/xanadu-island-resort/Thanks
RobForum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Page Navi and Random order?Still no answer?
Anybody want to custom program something for me to allow it be random and not duplicate on the pagination?
Forum: Plugins
In reply to: [WP-PageNavi] [Plugin: WP-PageNavi] Page Navi and Random order?Anyone?
Forum: Plugins
In reply to: Picture and Video Commentsbump
Forum: Fixing WordPress
In reply to: Display Posts by Specific UserOkay, this is what I used to get the user info:
global $current_user; get_currentuserinfo(); echo '<div style="padding:10px;">'; echo 'Username: ' . $current_user->user_login . "<br>"; echo 'User email: ' . $current_user->user_email . "<br>"; echo 'User first name: ' . $current_user->user_firstname . "<br>"; echo 'User last name: ' . $current_user->user_lastname . "<br>"; echo 'User display name: ' . $current_user->display_name . "<br>"; echo 'User ID: ' . $current_user->ID . "<br>"; echo '</div>';
most of that is just to display for testing purposes, but it displays the current user correctly.
Then I use this to get the query:
query_posts('author=$current_user->ID');
And then I used this loop to try to display things (keyword try!)
<?php //The Loop if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <p> <?php the_author('author=$current_user->ID') ?> </p> <?php endwhile; else: ?> .. <?php endif; ?>
The problem that arises is that it doesn’t display posts from that author it displays posts from any author and the most recent posts.
is there something wrong in what I am doing? Is the $current_user not being carried into the Loop?
Forum: Fixing WordPress
In reply to: Post and comments for a specific userwhat was your resolution to this? Please advise.
guessing you do a check (or it’s built in already) to see if user is logged in, which subsequently will have the user’s ID.
From there a get_posts() function from that user ID?
Please help.
Thanks