Novice question - capitalise function return |
Novice question - capitalise function return |
will.birch |
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 ); |
Lo-Fi Version | Time is now: 27th April 2024 - 12:13 PM |