writegnj
Forum Replies Created
-
Forum: Your WordPress
In reply to: Free Online Journal/Diary site for everyone!Hi satty005, thank you for the comment.In order to make journal private, I had to go with mandatory registration. I would love to take any suggestions for this issue to get around without mandatory registration.
Thank you ?? have a great holiday!Forum: Fixing WordPress
In reply to: Display post by day, month, year filterApparently fixing code to below solved my problem. lol
<?php
wp_get_current_user();
$loggedin_user_name = $current_user->user_login;$year = get_the_time(‘Y’);
$month = get_the_time(‘m’);
$day = get_the_time(‘d’);if ( is_day() ) :
query_posts(‘day=’.$day.’cat=2&posts_per_page=’.get_option(‘posts_per_page’).’&author_name=’.$loggedin_user_name);
elseif ( is_month() ) :
query_posts(‘&monthnum=’.$month.’cat=2&posts_per_page=’.get_option(‘posts_per_page’).’&author_name=’.$loggedin_user_name);
elseif ( is_year() ) :
query_posts(‘year=’.$year.’cat=2&posts_per_page=’.get_option(‘posts_per_page’).’&author_name=’.$loggedin_user_name);
else :
_e( ‘Archives’, ‘twentytwelve’ );
endif;?>
Forum: Fixing WordPress
In reply to: Display post by day, month, year filterabove code displays everything correctly. however, when I click on days in WP default calendar, it does not retrieve posts on the day I clicked.
Plz help!Forum: Plugins
In reply to: [List category posts] [post_status = publish] still shows private postlol
removing below codeif(is_user_logged_in()):
$args[‘post_status’] = array(‘publish’,’private’);
endif;in CatList.php line 73 solved the problem.
Forum: Plugins
In reply to: [List category posts] [post_status = publish] still shows private postWell I just found that [post_status = publish] works ok when you are Not Sign in but when user sign in as author, it’s pulling out private posts from database and displays it on the page.. any solutions?
I had a same problem with that. wish this plugin supports private and public post from users at front-end.
I ended up adding couple codes in “wpuf-dashboard.php” file to make this work. please advise if this has any potential problems in my code cause I’m not a programmer lol but for now it works ok.
1. I added custom field from dashboard.Field Name: cf_visibility. Type: Dropbox. Values: Private, Public.
2. Then I added below code above line 422.
$post_stat_value = trim( $_POST[‘cf_visibility’] );
if ($post_stat_value == “Public”){
$post_stat = “publish”;
} else {
$post_stat = “private”;
}3. Added same code in “wpuf-edit-post.php”. (for changing post status)
btw! awesome plugin thanks for making this for everyone ??