The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Novice question - capitalise function return
will.birch
post Apr 28 2020, 03:44 PM
Post #1





Group: Members
Posts: 2
Joined: 28-April 20
Member No.: 27,305



Hi guys/gals

Really novice to this but trying my best.

All I want to do is capitalise the return of the function to then be replaced in the wordpress shortcode.
What am I missing here!

CODE

// Page Title Shortcode - page_title
function page_title_sc( ){
    return get_the_title();
}
$titleupper = strtoupper('page_title_sc');
add_shortcode( 'page_title', $titleupper );
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 12:13 PM