wpcrank_phil
Forum Replies Created
-
Forum: Plugins
In reply to: [Admin Menu Editor] Alter menu with PHPThanks Janis. I’ve sent an email a few days ago for when you get a chance.
🙂
Forum: Plugins
In reply to: [Admin Menu Editor] Alter menu with PHPThanks for the quick reply. Still no luck though…
This…
function test_change_position($item) { if ($item['menu_title'] == 'Cases') { $item['position'] = 4; } return $item; } add_filter('custom_admin_menu', 'test_change_position');Moved it into the right place if I ran another filter and print_r all the $items, but the actual menu didn’t change.
Kinda the same thing with custom_menu_order / menu_order…
function my_menu_order( $menu_order ) { pre($menu_order,0); return $menu_order; } add_filter( 'custom_menu_order', '__return_true'); add_filter( 'menu_order', 'my_menu_order' );…actually showed the post_types where desired but the displays differently.
Maybe this is happening before AME? I tried 1/9999999 priorities. Perhaps there is a caching mechanism that I need to flush somehow?
Thanks again for your help,
Philip
Forum: Fixing WordPress
In reply to: Customizing Menu Sections in AdminThanks Mark,
Looks like my screencast didn’t keep – so question wasn’t clear. I’m actually talking about the different sections that you can add to a nav menu, by going to Appearance > Menus. Haven’t been able to find anything or anyway to tweak those.
Any ideas on that?
Philip
Forum: Plugins
In reply to: [Jazzy Forms] Advanced Custom Fields (ACF) ProblemWe’re still having this problem. Any help would be much appreciated!
Philip
Same issue here 🙁
Forum: Fixing WordPress
In reply to: Best way to handle global website with many locationsWrong forum?
Forum: Plugins
In reply to: [Dynamic Headers] [Plugin: Dynamic Headers] Code EnhancementAlso, if you want the default blog header image to show up on all blog pages (category, single, archive) you can use something like this instead of the standard call…
<?php if(function_exists('show_media_header')){ if ( is_single() || is_category() || is_archive() ) { echo '<img src="'.get_bloginfo('url').'/wp-content/header-images/'.get_option('dhnd_homepage').'" />'; } else { show_media_header(); } } ?>Forum: Themes and Templates
In reply to: WP_Query inside WP_QueryHm, sorry. Didn’t konw about the pastebin thing. Probably not much benefit to anyone else if mods just want to remove this.
Forum: Themes and Templates
In reply to: WP_Query inside WP_QueryNot sure I quite understand why, but just tried moving the piece that got the title in the first loop up a bit in the code and now it’s working. For future reference just in case…
[Code moderated as per the Forum Rules. Please use the pastebin]
Love the plugin, but have to hunt this post down everytime to find where to escape the quotes. Maybe you can just implement this sometime soon instead of waiting for the whole next version? Would be helpful 🙂
Thanks for the great plugin!