Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function imd_portfolio_meta_box() {
- global $post;
- // get the custom field values as an array
- $values = get_post_custom( $post->ID );
- // extract the members of the $values array to their own variables (which you can see below, in the HTML code)
- extract( $values, EXTR_SKIP );
- // escape the output, just in case
- $allowed_html = array(
- 'a' => array(
- 'href' => array(),
- 'title' => array()
- ),
- 'em' => array(),
- 'strong' => array()
- );
- $_imd_portfolio_details_output = wp_kses($_imd_portfolio_details[0], $allowed_html);
- $_imd_portfolio_client_output = wp_kses($_imd_portfolio_client[0], $allowed_html);
- $_imd_portfolio_website_output = wp_kses($_imd_portfolio_website[0], $allowed_html);
- $_imd_portfolio_quote_output = wp_kses($_imd_portfolio_quote[0], $allowed_html);
- $output = '<div class="review-box">
- <ul class="review-box-list">
- <li><strong>Details:</strong> '.$_imd_portfolio_details_output.'</li>
- <li><strong>Client:</strong> '.$_imd_portfolio_client_output.'</li>
- <li><strong>Website:</strong> '.$_imd_portfolio_website_output.'</li>
- <li><strong>Quote:</strong>'.$_imd_portfolio_quote_output.'></li>
- </ul>
- </div>';
- return $output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement