Question
I've styled my header to have a fixed top position. While logged in to wordpress, the wp admin nav bar covers the top section of my header making imposible to access my top navigation. I would like for the wp ...
0
, 8 years 0 Answers 35 views

Question
I want to add some more profile fields to Wordpress. It works fine with normal text box: <input type="text" name="gender" id="gender" value="<?php echo esc_attr( get_the_author_meta( 'gender', $user->ID ) ); ?>" class="regular-text" /><br /> But of cause I don't want my users to ...
0
, 8 years 0 Answers 19 views

Question
I'm using the following code in my function.php to display the top commenters in my theme: function top_comment_authors($amount = 5){ global $wpdb; $results = $wpdb->get_results(' SELECT COUNT(comment_author_email) AS comments_count, comment_author_email, comment_author, comment_author_url ...
0
8 years 0 Answers 14 views

Question
I have a PHP page at the same level as the template/theme on WordPress. I need to be able to get the current logged in user details from this page. I have tried this: require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' ); global $current_user; $current_user = wp_get_current_user(); var_dump( $current_user ...
0
, , 8 years 0 Answers 31 views

Question
how to edit wp category widget, so it would not show one of specified category? For example, it shows all categories in list, and I need to remove category Books, from it, how can I do it? Best regards, Y2ok
0
, 8 years 0 Answers 40 views