How to change the menu color

Is this the answer you’re looking for? Go to your .css file and replace this #access { background: linear-gradient(rgb(37, 37, 37), rgb(10, 10, 10)) repeat scroll 0% 0% transparent; box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4); clear: both; display: block; float: left; margin: 0px auto 6px; width: 100%; } With this #access { background: … Read more

What’s the best way to show custom post types? With page template it’s not perfect!

Refer to the Template Hierarchy Codex entry. To display the archive index page for a custom post type, use template file archive-{posttype}.php. To display a single post page for a custom post type, use template file single-{posttype}.php. For your pagination issues with a custom query loop, look for related questions on the site.

Rewrite rule help for gallery plugin

I finally got my rewrite rules to work here: $home = get_post(Sunshine::$options[‘page’]); // Gallery add_rewrite_rule($home->post_name.”/gallery/([^/]+)/page/?([0-9]{1,})/?$”,’index.php?pagename=”.$home->post_name.”&sunshine_gallery=$matches[1]&paged=$matches[2]’,’top’); add_rewrite_rule($home->post_name.”/gallery/([^/]+)/?$”,’index.php?p=’.$home->post_name.’&sunshine_gallery=$matches[1]’,’top’); add_rewrite_rule($home->post_name.”/gallery/([^/]+)/?$”,’index.php?pagename=”.$home->post_name.”&sunshine_gallery=$matches[1]’,’top’); // Image add_rewrite_rule($home->post_name.”/image/([^/]+)/?$”,’index.php?pagename=”.$home->post_name.”&sunshine_image=$matches[1]’,’top’);

Limit Tags display and ad Drop Down Menu

This can be a start… <?php $tags = wp_get_post_tags($post_id); $html=”<div class=”post_tags”>”; $i=1; foreach ( $tags as $tag ) { $tag_link = get_tag_link( $tag->term_id ); if($i>3) { if($i==4) { $html .= ‘<ul class=”post_tags_menu”>’; } $html .= “<li><a href=”https://wordpress.stackexchange.com/questions/88264/{$tag_link}” title=”{$tag->name} Tag” class=”{$tag->slug}”>”; $html .= “{$tag->name}</a><li>”; } else { $html .= “<a href=”https://wordpress.stackexchange.com/questions/88264/{$tag_link}” title=”{$tag->name} Tag” class=”{$tag->slug}”>”; $html .= … Read more

Option to delete value in metabox

Use delete_post_meta to delete a value. Example: delete_post_meta($post->ID, ‘brk_news_update’); If you want to update it, then use update_post_meta update_post_meta($post->ID, ‘brk_news_update’,’value’);