Will Woodward
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Gallery sanitizer duplicated in featured image and post contentThanks Ryan, that’s a much better solution than using a sanitizer!
Forum: Plugins
In reply to: [WordPress Importer] Planning to upgrade to Php 7 and give a Errors…The error given is “Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0. Use curly braces to remove ambiguity” on line 884:
$$meta['key'] = $meta['value'];should be:
${$meta['key']} = $meta['value'];Forum: Plugins
In reply to: [SendGrid] How do I send a text/plain version alongside the text/html email?Excellent, thanks.
Forum: Plugins
In reply to: [SendGrid] How do I send a text/plain version alongside the text/html email?To be clear, there is also a ‘use’ statement at the top of the file, as so:
use \SendGrid\Email as SendGridEmail;Forum: Plugins
In reply to: [Disqus Comment System] New comments not syncingSyncing doesn’t seem to be working here either. If I manually sync, it looks as if it’s worked (I get the message “Your comments have been downloaded from Disqus and saved in your local database.” with a tick) but there are no new comments in WordPress.
There are no errors in the Console, and the Network requests seem to be ok.
I’m running a multisite setup on PHP 5.5 if that helps at all.
Update: the above code worked. Non-published posts are being posted to Facebook Pages, but edited published posts are not.
I think this could be achieved by adding the following code to the top of the
xyz_link_fbap_future_to_publish()function inadmin/publish.php:if ($old_status === 'publish') { return; }I think I’m having the same problem, so I’ll try to explain as best I can.
I have “Default selection of auto publish while editing posts/pages” set to “Yes” because I don’t want to have to explain to every new editor that they need to select this option every time they publish a post.
When they first publish something, it posts to Facebook Pages… perfect!
But when they edit the post (e.g., they spot a typo once it’s already published) it will be posted to Facebook Pages again. This is the issue I’m having.
In short: I only want to post to Facebook Pages if the post is going from non-
publish(e.g.,draft,pending) topublishstate; not if it’s going frompublishtopublishstate.Forum: Plugins
In reply to: [Live Blogging Plus] All live blog entries appearing in all live blog postsNo problem!
Forum: Plugins
In reply to: [Live Blogging Plus] All live blog entries appearing in all live blog postsWhich version are you using? I’m on 1.1. I’ve replaced the code in the following functions:
live_blog_chatbox_get_postslive_blogging_shortcodelive_blogging_ajax
Edit: Make sure you’re only changing the arguments in the
WP_Queryusages.For example, in the
live_blogging_shortcodefunction:$q = new WP_Query(array( 'post_type' => 'liveblog_entry', 'liveblog' => $id, 'posts_per_page' => -1, 'post_status' => 'publish', 'orderby' => 'date', 'order' => ('bottom' == get_option('liveblogging_update_effect')) ? 'ASC' : 'DESC' ));becomes:
$q = new WP_Query(array( 'post_type' => 'liveblog_entry', 'tax_query' => array( array( 'taxonomy' => 'liveblog', 'field' => 'name', 'terms' => $id, ), ), 'posts_per_page' => -1, 'post_status' => 'publish', 'orderby' => 'date', 'order' => ('bottom' == get_option('liveblogging_update_effect')) ? 'ASC' : 'DESC' ));Forum: Plugins
In reply to: [Live Blogging Plus] All live blog entries appearing in all live blog postsIn the main plugin file: live-blogging-plus.php
There are three instances of
'liveblog' => $id,or'liveblog' => $liveblog_id,that you’ll need to replace.Forum: Plugins
In reply to: [WP-SCSS] CSS not being regeneratedHi Matt,
No, I didn’t. In the end I scrapped using this plugin. I now use CodeKit on my development machine to generate the CSS locally, before deployment.
I’m sure it isn’t the most correct way (it should be done as part of the deployment process itself) but it works for me!
Forum: Plugins
In reply to: [WP-PostViews] Feature request: ignoring refresh hits@chardon, you can see the code changes you’ll need to make here: https://github.com/lesterchan/wp-postviews/pull/18/files
Forum: Plugins
In reply to: [WP-PostViews] Feature request: ignoring refresh hitsI’ve added that pull request. No harm done if it’s an edge case and you decide not to accept it.
Forum: Plugins
In reply to: [WP-SCSS] CSS not being regeneratedI’ve found the problem. It doesn’t think the SCSS files have been updated since the CSS was last generated, but this is incorrect.
The last SCSS file was modified: 2015-08-10 14:10:10
The CSS file was modified: 2015-08-09 22:25:45Do you have any idea why this might be?