Get author name of blog posted in WordPress
How to each blog post Author name in Blog anywhere using PHP in WordPress <?php $author_id = $post->post_author; echo get_the_author_meta(‘display_name’, $author_id); ?>
How to each blog post Author name in Blog anywhere using PHP in WordPress <?php $author_id = $post->post_author; echo get_the_author_meta(‘display_name’, $author_id); ?>
MySql query for fetch WP post_id, post_title, post_date & name with using thumbnail for a particular WordPress category. WordPress also provides some methods for retrieving post data with thumbnails but you can also fetch them with MySQL query. Also, do with same with MySql join in array format. If you are required to display WordPress […]
Using GeoPlugin PHP API to Get Country Name and Country IP address. Some time in HTML contact or WordPress contact form 7 we need to Country and Country IP address where the user fills the form. It’s required for tracking which country user used the form and find out where a lead comes from […]
Why do need a WordPress Website for Small Business High Maintenace WordPress Websites require regular maintenance like PHP Version Updates, Theme Updates, Plug-in updates and etc. Update Plugin and Themes Sometimes updating the theme or plug-in in WordPress websites the other plug-in or website functionality will work stop the require to update too. If […]
Text replacement in WordPress By Define Simple Function In WordPress replace text by define function in function.php file. By this code allow to easily define text or HTML that replace in Wodpress Post, pages or comment. By this text, replacements can easily work on the comment, post, and pages. function start_modify_html() { ob_start(); } […]
How to add blog post title or heading in WordPress Single Blog <h2><?php single_post_title( ‘Current Open Post: ‘ ); ?></h2>
How to Add Category Dropdown or Fetch Category List with Link in WordPress Code In header.php <div class=”dropDownBlog”> <?php $categories = get_categories( array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’ ) );?> <div class=”fetchCategary”> <select id=”blogPageCategaryFetch”> <option disabled selected>Explore By Categary</option> <?php foreach( $categories as $category ) { $category_link = sprintf( ‘<a href=”%1$s” alt=”%2$s”>%3$s</a>’, esc_url( get_category_link( […]
Go to PHP file functions-enfold.php (../wp-content/themes/enfold) select $nofollow variable and update ‘rel=”nofollow”‘ to ‘rel=”follow”‘. /* AJAX SEARCH */ if(!function_exists(‘avia_append_search_nav’)) { //first append search item to main menu add_filter( ‘wp_nav_menu_items’, ‘avia_append_search_nav’, 9997, 2 ); add_filter( ‘avf_fallback_menu_items’, ‘avia_append_search_nav’, 9997, 2 ); function avia_append_search_nav ( $items, $args ) { if(avia_get_option(‘header_searchicon’,’header_searchicon’) != “header_searchicon”) return $items; if(avia_get_option(‘header_position’, ‘header_top’) != “header_top”) […]