Skip to content
  • Home Blog
  • More Online Tools
    • Code Compress & Beautify
      • HTML Compress
      • CSS Compress
      • JavaScript Compress
      • CSS Beautify
    • Words & Character Utitlies
      • Keywords Density & Word Count
      • Change Case
    • Image Convertor
      • Image To WebP Convert
      • EPS To PNG
    • SEO Tools
      • Extrat Title & Meta Tags
      • Extrat Heading Tags
      • Extract Tags From Youtube Video
      • Title Meta Length Counter
    • Color Tool
      • HEX to RGB Convert
    • Device Testing
      • Multi Device Simulator
  • Donate
  • Resource
Go back to home

Basic Function: Get Template Output as String

Posted on: December 16, 2025December 16, 2025WordPress

  WordPress function that loads a template file and returns the output as a string. function get_card_layout(){ ob_start(); include_once plugin_dir_path(__FILE__). “tempalte/cards.php”; $layout = ob_get_content(); ob_end_clean(); echo $layout; }

Get Image Path in WP Query Loop

Posted on: December 9, 2025Wordpress , WordPress

Get Image Path in WP Query Loop $image = wp_get_attachement_images_src( get_post_thubnail_id(get_the_ID()), ‘thumbnail’ ); <img src”<?php echo $image[0]; ?>” alt=”<?php echo wp_get_atttachment_caption( get_the_ID() );?>” />

Create a Taxonomies in Custom Post Type (CPT Plugin) and fetch category post results

Posted on: August 30, 2024Wordpress , WordPress

Below is the code for fetch a particular CPT with created category/ Taxonomies with PHP WP_Query function.

Creating WordPress PHP Fetch Result to Custom Templates with CPT (Custom Post Type UI Plugin)

Posted on: July 26, 2024WordPress

Add CPT plugin in your WordPress, then after create a Post type with plugin after create post type its appear in left side WordPress menu. Create Custom post type with […]

Gravity Form Submission with Zoho Lead Integration Or Form Data push to Zoho CRM

Posted on: May 27, 2024May 28, 2024Gravity Forms , PHP , Wordpress , WordPress

Gravity form predefined function gform_after_submission is executed at the end of form submission process when user submit the form.Gravity form gform_after_submission function contact entry object parameter contains all submitted values […]

Get author name of blog posted in WordPress

Posted on: March 31, 2022March 31, 2022WordPress

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/ retrieve category data in WordPress with image thumbnail

Posted on: February 14, 2022MySQL , PHP , Wordpress , WordPress

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 […]

Get Country Name and IP Address in Form Hidden Field by PHP Geoplugin API

Posted on: November 12, 2021November 12, 2021PHP , 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 […]

Why should not use WordPress for your Busines Website

Posted on: October 21, 2020November 14, 2020WordPress
Why should not use WordPress for your Busines Website

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 […]

Text Replace By Define Simple Function in WordPress

Posted on: August 1, 2020WordPress
Text Replace By Define Simple Function in WordPress

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 […]

Posts pagination

Page 1 Page 2 Next page

Categories

  • MyFreeOnlineTools
  • Resource
  • Author
  • Blog
  • Corona Virus
  • Donate

Recent Posts

  • Create Gutenberg Block with NPX Node Enviroment
  • Basic Function: Get Template Output as String
  • Get Image Path in WP Query Loop
  • How to Dynamically Update the HTML Lang Attribute in WordPress Using functions.php
  • Create a Taxonomies in Custom Post Type (CPT Plugin) and fetch category post results
  • WordPress
    • Gravity Forms

Recent Post

  • Create Gutenberg Block with NPX Node Enviroment
  • Basic Function: Get Template Output as String
  • Get Image Path in WP Query Loop
  • How to Dynamically Update the HTML Lang Attribute in WordPress Using functions.php
  • Create a Taxonomies in Custom Post Type (CPT Plugin) and fetch category post results
MyFreeOnlineTools