• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Ani's Webdev Blog

A learning diary of website development

  • Home
  • Demo
    • Ajax Contact Form
  • WordPress
  • Front-end
  • Backend

[WordPress] How to transform post title into UPPERCASE without plugins

Modified on: September 18, 2020

To transform the post title into different style, for example uppercase, you don’t need to use any plugin. In this article I will show you how to do it simply by using WordPress filter.

What we are going to do is to add a filter hook, so that the title of a post will go through this before displaying to the user.

Add in your functions.php:

PHP

This line can also be changed for other different transformation.

PHP

Filed Under: Wordpress, WordPress Themes Tagged With: add_filter, php, wordpress hooks

Recent posts

[WordPress] Let’s Make Plugin E01: A Simple View Count Plugin

[WordPress] Create custom post type programmatically

[WordPress] Open Images in Posts into Lightboxes On Clicks (Without Plugins)

Reader Interactions

You are here: Home / Wordpress / [WordPress] How to transform post title into UPPERCASE without plugins

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Hi! I am a Vietnamese coder living in Oulu, Finland. Currently I am working with PHP, MySQL, HTML, CSS, and JavaScript. This blog is my learning diary, in which I share knowledge from my own experience or research. Hopefully you can find something useful here and don’t hesitate to open a discussion or leave a feedback!

FOLLOW MY BLOG

Thank you for visiting this website! I hope you find something useful here :). Contact me by email: anh@anhkarppinen.com.