lieutenantdan
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Action hook for mail (2)?Hmm so when I’m trying the [_post_title] tag it doesn’t seem to work in either mail or mail (2)
Forum: Plugins
In reply to: [Contact Form 7] Action hook for mail (2)?Hmm ok well I can confirm that I am using that hook and the tag I have added is able to replace the body of the mail being sent.
What are the hooks that should be used for mail and mail (2) tags then?
Forum: Plugins
In reply to: [Google Maps Ready!] Generates non-valid HTML, suggested fix…
Forum: Plugins
In reply to: [Google Maps Ready!] Generates non-valid HTML, suggested fixWhy would it not be a good idea? The regex is simply for scanning the content, not changing it. You can use it to detect the shortcode, get it, then add the CSS to the head then users using your plugin will be able to validate their code.
Forum: Plugins
In reply to: [Google Maps Ready!] Generates non-valid HTML, suggested fixThis is most definitely not impossible and I don’t see how it is marked resolved. Simply scan the post content for your shortcode before wp outputs the head… as explained here: https://wordpress.stackexchange.com/questions/101498/redirect-function-inside-a-shortcode/101515#101515
Forum: Plugins
In reply to: [WooCommerce] A lot of wc sessions (?)Well I was able to find the source of the problem, it was a search engine bot scanning all the products “add to cart” button causing it to create a bunch of extra cart sessions. I was able to deter the bots by using this in my robots.txt
User-agent: *
Disallow: /*add-to-cart=*In case anyone is still having this problem or gets it in the future.
Forum: Plugins
In reply to: [WooCommerce] A lot of wc sessions (?)I am also getting this error, anyone trying to fix this or had luck with this?
Forum: Hacks
In reply to: shortcode autopThat works although I still want to keep the autop in posts and pages, just not in my shortcodes.
This is one attempt,
//move wpautop filter to AFTER shortcode is processed remove_filter( 'the_content', 'wpautop' ); add_filter( 'the_content', 'wpautop' , 99); add_filter( 'the_content', 'shortcode_unautop',100 );
Forum: Hacks
In reply to: wpdb updateStill nothing =/
Forum: Themes and Templates
In reply to: Edit User Agent Stylesheet??? ItalicsRight after your <div class=’pageContainer’> you have an opening <i> which italicizes the text within it. User agent just means your browsers default styling for that element.
Forum: Hacks
In reply to: ?????WordPress function for require/include ?Forum: Hacks
In reply to: Create menu with custom fieldsi figured a workaround if anyone needs it
$menu_items = wp_get_nav_menu_items( "flyout-menu" ); $descriptions = array( "A house is not a HOME.", "Our passion... and what it can do for you.", "Works that are worth a thousand words. Or more.", "The ones in the spotlight that you can't live without.", "The official place for all things us.", "Put yourself on the map - or let us do it for you.", "It's the people you can call up at 4 a.m. that really matter."); $i = 0; foreach( $menu_items as $item ){ update_post_meta( $item->ID, "_menu_item_custom", $descriptions[$i] ); $i++; }
Forum: Hacks
In reply to: jQuery conflicts help$(document).ready(function() {
can be turned into
jQuery(document).ready(function($) {
for conflict free
Forum: Hacks
In reply to: Activate widgets using PHP?/************************************************************************************* * Set default widgets *************************************************************************************/ // widget instances update_option( 'widget_search', array( 2 => array( 'title' => 'Search!' ), '_multiwidget' => 1 ) ); update_option( 'widget_recent-posts', array( 2 => array( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) ); update_option( 'widget_recent-comments', array( 2 => array( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) ); update_option( 'widget_archives', array( 2 => array( 'title' => '', 'count' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) ); update_option( 'widget_categories', array( 2 => array( 'title' => '', 'count' => 0, 'hierarchical' => 0, 'dropdown' => 0 ), '_multiwidget' => 1 ) ); update_option( 'widget_meta', array( 2 => array( 'title' => '' ), '_multiwidget' => 1 ) ); // widget order update_option( 'sidebars_widgets', array( 'sidebar' => array( 'custom_menu_widget_1', 'recent-posts-2', 'archives-2', 'tags_widget_1', 'social_network_widget_1', ), 'wp_inactive_widgets' => array(), ));
Got an answer…
Forum: Hacks
In reply to: Activate widgets using PHP?Ok so I’ve limited it to the widgets that wont load are the multi instance ones. Not sure if that helps