jloft
Forum Replies Created
-
Forum: Plugins
In reply to: [MP6] override WP's default toolbar top marginInteresting. It seems you solved the issue a different way.
Forum: Plugins
In reply to: [MP6] override WP's default toolbar top marginIn the WordPress Codex, I found the is_admin_bar_showing(); function.
https://codex.www.ads-software.com/Function_Reference/is_admin_bar_showingAdding it as a conditional to the mp6_override_toolbar_margin function seems to fix the issue I reported.
add_action( 'wp_head', 'mp6_override_toolbar_margin', 11 ); function mp6_override_toolbar_margin() { if ( is_admin_bar_showing() ) { ?> <style type="text/css" media="screen"> html { margin-top: 32px !important; } * html body { margin-top: 32px !important; } </style> <?php } }
If what I’ve done is correct, then I recommend including this edit to the function in MP6 6.0 this Friday.
Forum: Plugins
In reply to: [PB Responsive Images] wp_register_script was called incorrectlyGood call. It was the debug mode. I often develop with debugging set to true. The error notices are just minor annoyances for the most part, but the “header already sent” warning is a bigger problem because it results in a white screen and does not save changes to the settings. Thus, plugin settings cannot be edited and saved with debug mode active.
Forum: Plugins
In reply to: [PB Responsive Images] wp_register_script was called incorrectlyI just started over with a fresh WP install. Installing and activating PB Responsive did not result in the error messages this time. Not sure what the difference is between the two installs, but clearly, it is not a consistent error.
Forum: Plugins
In reply to: [PB Responsive Images] Retina / High DPI DisplaysAha! Thank you. I was overlooking that I could insert something like (min-device-pixel-ratio:2) in the “media” field.
Forum: Plugins
In reply to: [PB Responsive Images] wp_register_script was called incorrectlyThank you. I appreciate your help.
Forum: Plugins
In reply to: [PB Responsive Images] wp_register_script was called incorrectlyI see now that the plugin is designated as only compatible up to 3.4.2. Perhaps that’s why I’m experiencing these errors.
Is the plugin still in active development? Will it be compatible with 3.5.1, 3.6, etc. in the future?
Forum: Fixing WordPress
In reply to: Display Linkable Posts for each Custom Taxonomy Termvtxyzzy,
Any thoughts on how one might modify your code to generate “related posts” in the sidebar of a single.php template? Is there a way to dynamically populate the first line of your code with the taxonomy associated with the main post being displayed by the single template?
$terms = get_terms('taxonomy-of-main-post');
I know how to do this with the get_the_category(); function, but I can’t figure out how to do it when using custom posts with a custom taxonomy. I’ve posted about this in my forum entry here:
https://www.ads-software.com/support/topic/custom-taxonomy-related-posts-query
Forum: Fixing WordPress
In reply to: Most efficient way of looping through custom taxonomiesI think this is a similar question to what I’m asking in this newer forum entry:
https://www.ads-software.com/support/topic/custom-taxonomy-related-posts
Can anyone help us out? We need help figuring out how to code the same functions we typically do with the default post type and taxonomies but with our custom post types and custom taxonomies.
Forum: Fixing WordPress
In reply to: Custom Taxonomy – Related Posts QueryI’d like to note that I originally got the code for displaying related posts by category from Binny VA’s blog. I’ve implemented it on other WordPress sites, so I know it works.
https://www.bin-co.com/blog/2009/04/show-related-post-in-wordpress-without-a-plugin/