Matt Thiessen
Forum Replies Created
-
Forum: Reviews
In reply to: [AppPresser - Mobile App Framework] Unable to configure settingsYour My AppPresser dashboard will be created once you purchase a license.
Forum: Plugins
In reply to: [AppPresser - Mobile App Framework] does it SUPPORT MU SITE?We don’t officially support MU, but many users do use it that way.
Forum: Plugins
In reply to: [PayPal for WooCommerce] Error: 'X-Frame-Options' to 'SAMEORIGIN'.Your code might be running too late if you put it in your theme, try creating a new file: wp-content/mu-plugins/somefile.php and add your code there.
Forum: Plugins
In reply to: [PayPal for WooCommerce] Error: 'X-Frame-Options' to 'SAMEORIGIN'.You remove that with this hook:
remove_action( 'template_redirect', 'wc_send_frame_options_header' );From /woocommerce/includes/wc-template-functions.php
/** * When loading sensitive checkout or account pages, send a HTTP header to limit rendering of pages to same origin iframes for security reasons. * * Can be disabled with: remove_action( 'template_redirect', 'wc_send_frame_options_header' ); * * @since 2.3.10 */ function wc_send_frame_options_header() { if ( is_checkout() || is_account_page() ) { send_frame_options_header(); } } add_action( 'template_redirect', 'wc_send_frame_options_header' );Forum: Themes and Templates
In reply to: start_lvl ignored in custom walker_nav_menuYour my_extended_walker class is OK, but when you call the wp_nav_menu function use the items_wrap parameter.
wp_nav_menu( array( 'items_wrap' => '<p>%3$s</p>', 'walker'=>new my_extended_walker() ) );http://codex.ww.wp.xz.cn/Function_Reference/wp_nav_menu
The start_lvl is used for children elements.
Forum: Networking WordPress
In reply to: multisite 3.6 broken link image 404 errorI’m having the same upload issues for matt.thiessen.us which is WPMU.
When I got this I disabled the HTML minify settings: Inline JS minification to remove the IgnoredCommentPreserver_
Forum: Fixing WordPress
In reply to: wp_insert_term trouble creating parent/child relationshipsClear the children cache for your taxonomy after you insert a new child
wp_insert_term( $new_name, $my_taxonomy, array( 'parent'=> (int)$new__term_id ) ); delete_option($my_taxonomy."_children"); // clear the cacheForum: Plugins
In reply to: [Slideshow Gallery LITE] Slideshow Gallery not displaying after recent updateI’m having the same problem. I placed [slideshow] in my post, but it displays [Gallery not found]
I ran in the same issue, but I don’t have time to troubleshoot. I have a feeling that it might be related to miltisite because it works fine on the main blog but not on the others. My one minute workaround is to . . .
INSERT INTO wp_6_ngg_album (id, name, previewpic, albumdesc, sortorder) VALUES ( LAST_INSERT_ID( ) , 'Homepage', '0', NULL , '' );Forum: Plugins
In reply to: wp_update_post updates not shownOK now it works . . . on wp_insert_post I was setting post_status = ‘draft’, then on wp_update_post I was setting both post_status = ‘publish’ along with the post_date to a date in the past.
Once I changed the post_status = ‘publish’ on my wp_insert_post and removed the post_status = ‘publish’ on the wp_update_post it worked. wp_insert_post must be ignoring what I am setting for the post_date.
$postObj['post_status'] = 'publish';$id = wp_insert_post( $postObj );…
/* $my_updated_post['post_status'] = 'publish'; */I’m going to have to find another work around because I was using the draft_post hook to email subscribers of new ads. The problem I was having is that every ad was being emailed regardless of the past publication date.
I’ll try using the edit_post hook to notify users of only today’s ads.
Forum: Plugins
In reply to: wp_update_post updates not shownI am having a similar problem with updating the post_date and post_date_gmt. I am using wp_insert_post to create classified ads and then updating them with their actual publication date using wp_update_post.
The documentation says that it will return the id of the post it is successful. In my case it is returning the ID, but it the publication date is still current date.
$id = wp_insert_post( $postObj );$post_date = date("Y-m-d H:i:s", strtotime($start_date));
$post_date_gmt = date('Y-m-d H:i:s',strtotime($start_date . " +5 hours" ));$my_updated_post = array();
$my_updated_post['ID'] = $id;
$my_updated_post['post_date'] = $post_date;
$my_updated_post['post_date_gmt'] = $post_date_gmt;
$my_updated_post['post_status'] = 'publish';print_r($my_updated_post);$update_id = wp_update_post( $my_updated_post );echo("update id = $update_id<hr />\n");