how to auto fille conatct form 7 when user is logined

you can do with jquery like: <?php global $current_user; get_currentuserinfo(); echo ‘Username: ‘ . $current_user->user_login . “\n”; echo ‘User email: ‘ . $current_user->user_email . “\n”; echo ‘User level: ‘ . $current_user->user_level . “\n”; echo ‘User first name: ‘ . $current_user->user_firstname . “\n”; echo ‘User last name: ‘ . $current_user->user_lastname . “\n”; echo ‘User display name: … Read more

Smarter Document Management links between three WordPress sites sought

There is nothing in WP that specifically deals with cross–site communication. Every WP site is an island by design. However there are plenty helpful bits and pieces to rig suitable solutions for many use cases. As far as I follow your case I would imagine something like this: Central sites hosts documents (in whatever way … Read more

User WordPress menu in custom page

You’ll need to load in the external wordpress library first, and then you can call the admin bar. // Load the external WordPress files define( ‘WP_USE_THEMES’, false ); require( ‘./wp-load.php’ ); and then call wp_head() and wp_footer() accordingly to load the relevant display code.

Custom stylesheet not loading

Try using below code in your themes functions.php file: // custom login for theme function my_loginlcustomization() { echo ‘<link rel=”stylesheet” type=”text/css” href=”‘ . get_bloginfo(‘stylesheet_directory’) . ‘/login/login-styles.css” />’; } add_action(‘login_head’, ‘my_loginlcustomization’);

How to compare number with id of post in certain category

I found the solution <?php $costumepost = “12709”; // args $args = array( ‘numberposts’ => -1, ‘post_type’ => ‘post’, ‘cat’ => array(18), ‘meta_query’ => array( ‘relation’ => ‘AND’, array( ‘key’ => ‘costumeid’, ‘value’ => $costumepost, ‘compare’ => ‘=’ ), ) ); // query $the_query = new WP_Query( $args ); ?> <?php if( $the_query->have_posts() ): ?> … Read more