Adding if statement

I have format your code and break echo statement into parts and add if condition. you can take reference from below code. <?php if ( is_user_logged_in() ) { echo ‘<ul style=”padding: 0; margin: 0;”> <li class=”adminBar” style=”float: left; line-height: 60px; border-left: 1px solid #555555; border-right: 1px solid #555555;”><a href=”#” target=”_blank”><img src=”#” height=”40px” style=”padding-left: 15px; padding-right: … Read more

Extra editor on top of default in Custom Post Type

There are plugins available, such as Advanced Custom Fields, that allow you to add additional content areas. You set up the fields, and choose what post types they will appear on, and then you’ll be able to enter information in a WYSIWYG editor basically like the Classic Editor. ACF saves the data to postmeta rather … Read more