Get Post Meta and Give a Div a User Selected Class
-
In my header.php file, I have a “bannerimg” div that displays the featured image and title of a certain post/page…
I have created 2 custom meta boxes for the client so they can customize the styling of the_title, depending on which image they use as the featured… so if they wanted it to be blue text in the top right of the image, they can easily do that… Here is the list of my custom post meta below.Title Text Position: Top Left, Top Right, Bottom Left, Bottom Right
Title Text Color: Black, White, BlueNow I know how to grab the users selection: get_post_meta(‘position’)
I need someone to tell me how I can give my title text div, the meta class the user selected.
- The topic ‘Get Post Meta and Give a Div a User Selected Class’ is closed to new replies.