Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function printTags($tags){
- if ($tags!=false) {
- $return = '';
- foreach ($tags as $i){
- $return .= '<li><a href="' . home_url() . "/tag/" . $i->slug . '">' . $i->name . '</a></li>';
- }
- return $return;
- }
- }
- function getTags($tagData){
- $tagArray = [];
- if($tagData!=false){
- foreach ($tagData as $i){
- array_push($tagArray, $i->name);
- }
- }
- return $tagArray;
- }
- if (!get_user_meta($user_id, $meta_key['order'], true)) {
- $meta_value = array(
- 'side' => 'submitdiv,formatdiv,categorydiv,tagsdiv-post_tag,postimagediv',
- 'normal' => 'postexcerpt,postcustom,commentstatusdiv,commentsdiv,trackbacksdiv,slugdiv,authordiv,revisionsdiv',
- 'advanced' => '',
- );
- update_user_meta($user_id, $meta_key['order'], $meta_value);
- }
- <div class='myclass'>
- <div class='categories-container'>
- <strong><a href='". home_url() ."/category/". $sectionSlug."'>{$section}</a></strong>
- </div>
- <div class='tags-container'>
- <ul class='tags'>". printTags($tags) ."</ul>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement