Skip to content
Smart Web Worker

Smart Web Worker

  • WordPress
    • WordPress Themes
    • WordPress Snippets
    • WordPress Tips
  • Web Design
  • Web Development
  • Fonts
  • General
  • Contact

Category: WordPress Snippets

Posted onJanuary 29, 2012December 19, 2016WordPress

WordPress: Show number of page views without plugin

by Smart Web Worker

Do you want to show the number of times a page or post has been viewed in WordPress? There are several WordPress plugins that allow you to show pageview counts along with other bells and whistles. What if you don’t need all those features and just want to show the pageview count? Here is a very simple and effective code for logging the number of pageviews and showing them in WordPress.

Read More
Posted onJanuary 28, 2012December 19, 2016WordPress

WordPress: Disable Google Analytics in preview

by Smart Web Worker

Each time you preview your blog post in WordPress to ensure that everything is in order, your page view goes up in Google Analytics or other analytics service. This messes up your Google Analytics stats by increasing the pageviews. You can easily prevent this with a conditional tag called is_preview().

Read More
Posted onJanuary 27, 2012December 19, 2016Web Design

WordPress: Show thumbnail of a post

by Smart Web Worker

If you want to show the thumbnail of a WordPress post, just use the following code inside the WordPress query loop. Thumbnails can make your website look good.

Read More
Posted onJanuary 26, 2012December 19, 2016WordPress

WordPress: Display screenshot of any website using shortcode

by Smart Web Worker

Do you often use screenshots of websites in your WordPress blog? You can make your blogging faster using a shortcode to add screenshot automatically.

Read More
Posted onJanuary 25, 2012December 19, 2016WordPress

WordPress: Add simple login URL

by Smart Web Worker

If you create WordPress websites for your clients or general users, you might want to add a simple URL to log in to the WordPress dashboard.

Read More
Posted onJanuary 24, 2012December 19, 2016WordPress

WordPress: Limit comment wordcount like Twitter

by Smart Web Worker

Do you like the way Twitter and some other websites show the number of words allowed in posts or comments? Twitter allows 140 characters per tweet. As you type, you can see the number of characters left to write.

Read More
Posted onJanuary 24, 2012November 29, 2012Web Development

Use .htaccess to stop hotlinking & spam comments

by Smart Web Worker3 Comments on Use .htaccess to stop hotlinking & spam comments

When running a website or blog, you have to take care of certain issues such as hotlinking and requests without a referrer. You can use .htaccess file to define certain rules to protect and manage your website.

Read More
Posted onJanuary 24, 2012December 19, 2016WordPress

WordPress: Paypal donation button using shortcodes

by Smart Web Worker

Do you want to add a PayPal donation button so that your readers can send you a few dollars and say thank you? It can be very simple to integrate a PayPal donate button in your posts or WordPress website.

Read More
Posted onJanuary 23, 2012December 19, 2016WordPress

WordPress: Show random posts

by Smart Web Worker

Sometimes you want to show a list of random posts from your WordPress blog/website to your readers. It can be a great way of engaging readers for a longer duration by offering them more content. How to show a list of random posts in WordPress?

Read More
Posted onJanuary 23, 2012December 19, 2016WordPress

WordPress: Show popular posts based on comment count

by Smart Web Worker

Do you want to add a tabbed widget to show popular posts based on number of comments on your WordPress website? It is fairly easy to do with a custom WordPress post query.

Read More

Posts pagination

Previous Page Page 1 … Page 4 Page 5 Page 6 Next Page

Search the site…

Recent Posts

  • How to Change WordPress URL in MySQL Database Using phpMyAdmin?
  • 10 Tips to Improve Your Website Performance
  • How much to charge for WordPress maintenance?
  • How to Insert Maps in Website?
  • Best Free Handwriting Fonts

Categories

  • Fonts
  • General
  • Web Design
  • Web Development
  • WordPress
  • WordPress Snippets
  • WordPress Themes
  • WordPress Tips

Smart Web Worker

Smart Web Worker is your resource center for web design and development. We share articles and tutorials for web designers and developers. You will also find web design resources such as WordPress themes, fonts and images.

Quick Links

  • Home
  • About
  • Terms of Use
  • Affiliate Disclaimer
  • Contact
  • Sitemap
2025 © Smart Web Worker ⋅ Web Design Resources & Tutorials