I am looking to store multiple elements as an array, and then call them based on one of the element's size. For example-
We have a page titled:
Pet Assure | Daily Pet Calendar - Smoke (Bloodhound) Jun 23
I would like to store
"Pet Assure | " as value 0
"Daily " as value 1
"Pet Calendar- " as value 2
"<?php single_post_title(); ?> " or "Smoke (Bloodhound)" as value 3
"<?php the_time('M j') ?>" as value 4.
I would then like to dynamically set the page title.
If "Value 3" is less than or equal to 21, display the full string: "0" "1" "2" "3" "4"
Val 3=22-34 display "1" "2" "3" "4"
Val 3=35-40 display "2" "3" "4"
Val 3=41+ display "3" "4"
We have a blog with approx 1350 post with page title exceeding 100+ characters, and we are trying to remedy this.
Any help able to be provided would be awesome!