Lost for direction on how to continue building a theme
Lost for direction on how to continue building a theme
Lost for direction on how to continue building a theme
Some plugins and I guess themes save the initial URLs and paths in their configuration files. If you checked the DB and especially the options table and haven’t found their any mention of the old domain, then you should also search for it in the source files. It is probably best to simply download the … Read more
There are probably several approaches to doing this. One approach would be to select the categories and comments divs in your theme and use css to remove them. Example: In your style.css .entry-utility-prep-cat-links { display:none; }
Custom Comment Form Error Messages
change text written in english into hindi
All you need is to simply check if the entered name or email matched any admin accounts before the comment is saved. function restrict_admin_names() { if ( !is_user_logged_in() ) { $name = $_POST[‘author’]; // Get Submitted Name $email = $_POST[’email’]; // Get Submitted Email $admins = get_super_admins(); // Get an array of admin login $adminemail[] … Read more
you should do something like this //For update a page when use costum template $post = get_the_ID(); $my_post = array( ‘ID’ => $post, ‘comment_status’ => ‘open’ // closed ); // Update the post into the database wp_update_post( $my_post );
Looks like this is a core issue with BP and only affects custom commenting like I did. I’m going to mark this as resolved as they’re aware of the issue now.
There’s probably a way to do this via one of the meta cap filters, but off the top of my head you could use the comments_open filter to check if the currently logged in user is the author of the post and change the output of the comments_open() function accordingly. I’m on the patio, so … Read more
I should probably do <?php if( previous_comments_link() ) : ?> <li class=”previous”> <?php previous_comments_link( __( ‘← Older Comments’, ” ) ); ?> </li> <?php endif; ?> <?php if( next_comments_link() ) : ?> <li class=”next”> <?php next_comments_link( __( ‘← Newer Comments’, ” ) ); ?> </li> <?php endif; ?>