Select Menu
  • Home
  • Wordpress
  • Blogspot
  • SEO
  • Online Earning
  • About Us
  • Contact Us
  • Sitemap
  • PrivacyPolicy
  • About Us
  • Contact Us
  • Sitemap
  • Privacy Policy
Pressspot - Wordpress, Blogspot Coding And SEO Tutorial
  • Home
  • Wordpress
  • Blogspot
  • SEO
  • Earning
Home wordpress Do you know? what is the counting of total image usage of your wordpress blog?

Saturday, 14 April 2018

সিহাব সুমন

Do you know? what is the counting of total image usage of your wordpress blog?

  সিহাব সুমন      Saturday, 14 April 2018     wordpress      No comments   
Total image counting is not a important thing. but if you know this trick, you will show total number of usage image in any place of your wordpress site or blog. for show total number of usage image copy this code:

function img_count(){
$query_img_args = array(
'post_type' => 'attachment',
'post_mime_type' =>array(
'jpg|jpeg|jpe' => 'image/jpeg',
'gif' => 'image/gif',
'png' => 'image/png',
),
'post_status' => 'inherit',
'posts_per_page' => -1,
);
$query_img = new WP_Query( $query_img_args );
echo $query_img->post_count;
}
PROBLEM COPY CODE? TRY HERE!!
after copy this code paste it into your themes 'functions.php' file. now copy another code from bellow:
<?
img_count();
?>
PROBLEM COPY CODE? TRY HERE!!
after copy this code paste it in your theme where you want to show total number of image in your wordpress site.
Share This Post
Tweet Share Share Share Share Share

0 comments:

Post a Comment

Comments here

Popular Posts

  • How to add autoplay background music on blogger blog.
    We know that blogger or blogspot is a favorite blogging platform for all of bloggers. it is easy to use and free platform. one can easily ...
  • Do you know? how to stop all external request on your wordpress blog?
    At first take my salam, hope all of you are very fine. i am also. wordpress is a number one blogging platform. it is easy to use and manag...
  • If your wordpress theme doesn't support 'Menu' you can try this post for 'Menu' support.
    some low quality wordpress theme doesn't support menu. or when a wordpress theme maker create new custom theme then need menu support...
  • Hide 'Screen Option' tab from your wordpress dashboard with some coding !!!
    Hope all of you are very fine. when we visit our wordpress dashboard then we see a tab menu on lef side corner which is named 'Screen O...
  • Wordpress file upload button or 'add media' button not working? this is the solution!!
    How are you? wish all of you are very fine. im also fine. you know that i always share without plugin post. today i am sharing a nice code ...
  • How to change default footer text from wordpress dashboard.
    When we enter our wordpress sites dashboard then we see some default text and link like this: which is wordpress related. however, if y...
  • Remove wordpress logo from admin bar!
    When we visit our wordpress sites admin panel in dashboard. then we see a wordpress logo like this: Which is containing a wordpress logo...
  • how to change the permalink in wordpress without plugins ?
    how to change the permalink in wordpress Generally we set wordpress permalink from setting option. but if you try you can set permal...
  • Stop dragging effect for wordpress metabox without any kinds of plugins!!
    At first take my salam. hope all of you are very fine. when we visit our wordpress sites dashboard, then we see some meta box and if you wa...
  • MS Word 2007 to PDF Convert - Bangla Turorial-2022

Contact Form

Name

Email *

Message *

Subscribe to our email newsletter & receive updates right in your inbox.

Blog Archive

Popular Posts

  • How to add autoplay background music on blogger blog.
    We know that blogger or blogspot is a favorite blogging platform for all of bloggers. it is easy to use and free platform. one can easily ...
  • Do you know? how to stop all external request on your wordpress blog?
    At first take my salam, hope all of you are very fine. i am also. wordpress is a number one blogging platform. it is easy to use and manag...
  • If your wordpress theme doesn't support 'Menu' you can try this post for 'Menu' support.
    some low quality wordpress theme doesn't support menu. or when a wordpress theme maker create new custom theme then need menu support...
  • Hide 'Screen Option' tab from your wordpress dashboard with some coding !!!
    Hope all of you are very fine. when we visit our wordpress dashboard then we see a tab menu on lef side corner which is named 'Screen O...
  • Wordpress file upload button or 'add media' button not working? this is the solution!!
    How are you? wish all of you are very fine. im also fine. you know that i always share without plugin post. today i am sharing a nice code ...
click here

Labels

blogspot (1) wordpress (27)

Facebook Fan

BANNER 728X90

মোট পৃষ্ঠাদর্শন

Sparkline

আমার সম্পর্কে

  • সিহাব সুমন
  • itbatayan

Responsive Ads

Responsive Ads Here
Powered by: Blogger
Sitemap | Terms Condition |
Copyright © Pressspot - Wordpress, Blogspot Coding And SEO Tutorial