WordPress C# User Login

In short you want to mach your password with real hash code right. $user = get_user_by( ‘login’, $username ); if ( $user && wp_check_password( ‘123456’, $user->data->user_pass, $user->ID) ) echo “password Matched”; else echo “Not matched”;

Add Text After Logo in zerif lite theme

using some custom.css create 2 of these class like #main-nav-fb { width: 150px; display: block; padding: 2px 4px; border-radius: 0 0 4px 4px; background: #cc6052; font-size: 14px; text-align: center; color: #fff; position: absolute; top: 0; right: 200px; } in header.php after <div class=”navbar-header responsive-logo”> add something like this: <a id=main-nav-tel href=”https://wordpress.stackexchange.com/questions/193542/tel:+11111111111″>+11111111111</a>

Site going down due to slow queries

Perhaps info on this page might help: http://codex.wordpress.org/Class_Reference/wpdb Other than that I would do the usual troubleshooting to start. Backup everything. Turn off all plugins. Switch to a standard WordPress theme like 2015. Then see what errors you are getting now that you have stripped down your install. Then slowly turn things back on until … Read more

How to display post title on top of image with Genesis Featured Posts

when blog section comes from posts then check the content.php in active particular theme. and modify the html code <?php if ( is_single() ) : ?> <h1 class=”entry-title”><?php the_title(); ?></h1> <?php else : ?> <h1 class=”entry-title”> <a href=”https://wordpress.stackexchange.com/questions/195188/<?php the_permalink(); ?>” rel=”bookmark”><?php the_post_thumbnail(); ?><?php the_title(); ?></a> </h1> <?php endif; // is_single() ?> <div class=”entry-meta”> <?php twentythirteen_entry_meta(); … Read more

Fetch first image URL from post and set as featured image URL

First, paste this function on your functions.php file. function catch_that_image() { global $post, $posts; $first_img = ”; ob_start(); ob_end_clean(); $output = preg_match_all(‘//i’, $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image $first_img = “/images/default.jpg”; } return $first_img; } Once done, you can simply call the function within the loop to display the … Read more

How to add image for custom taxonomy

You can use get_object_taxonomies() as your solution. Returns all the taxonomies for a post type or post object: <?php get_object_taxonomies( $object, $output ); ?> Have you tried anything? something like this? // taxonomy term archives $post_type = get_post_type(); // find out if CPT $taxonomies = get_object_taxonomies($post_type); // Find taxonomies if($taxonomies){ foreach($taxonomies as $taxonomy){ // only … Read more