pr0fess0r
Forum Replies Created
-
Thanks Jennifer!
Turns out that was the case and the issue is now fixed – thanks for the tip!
Cheers
Lucas
Forum: Plugins
In reply to: Read More plugin for article content, mobile onlyNo, sadly
Forum: Plugins
In reply to: [Instant Articles for WP] Pulling all articles instead of just the set feedThanks for that – although in the settings panel on facebook you specify the URL of the RSS feed, which makes it seem odd that facebook would ignore that and use the API instead, or maybe it’s the plugin forcing it’s API on Facebook?
Great, thanks ??
Forum: Plugins
In reply to: [Instant Articles for WP] Pulling all articles instead of just the set feedI’ve had the same issue
I have the same question. How do we control which articles become part of the feed? For example, I want to have traffic to my site to view articles so I don’t want every post to be an instant article. I imagine it could be hacked by customizing the theme and adding a checkbox to the post page and then looking at that meta data field in a pre_get_posts action for IA… but is there a better way?
Yup I’ll have to merge the differences of any new version into my hacked plugin… a hassle :/
Forum: Plugins
In reply to: [Instant Articles for WP] Google Analytics Integration?Looking at this article:
How to track content Statistics for Facebook Instant Articles with Google Analytics I have tried this code:<script> (function (i,s,o,g,r,a,m) {i['GoogleAnalyticsObject']=r;i[r]=i[r]||function () {(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google- analytics.com/analytics.js','ga'); ga('create', 'ANALYTICS ID', 'auto'); ga('require', 'displayfeatures'); ga('set', 'campaignSource', 'Facebook'); ga('set', 'campaignMedium', 'Social Instant Article'); ga('send', 'pageview', {title: 'POST TITLE'}); </script>
which results in
<figure class="op-tracker"> <iframe hidden> <script> (function (i,s,o,g,r,a,m) {i['GoogleAnalyticsObject']=r;i[r]=i[r]||function () {(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google- analytics.com/analytics.js','ga'); ga('create', 'ANALYTICS ID', 'auto'); ga('require', 'displayfeatures'); ga('set', 'campaignSource', 'Facebook'); ga('set', 'campaignMedium', 'Social Instant Article'); ga('send', 'pageview', {title: 'POST TITLE'}); </script> </iframe> </figure>
(obviously using my ANALYTICS ID)
but I’m not seeing any data in GA. Has anyone got this, or another method of tracking in GA, working?Cheers
I used a similar technique in feed-template.php:
$type=get_post_type(get_the_id()); if($type<>'post'){ continue; }
No, because it showed brand new articles added since i modified the plugin to exclude CPTs ..
Forum: Plugins
In reply to: [Instant Articles for WP] Custom post types and this plugin?Also ditto…
Forum: Plugins
In reply to: [Comments - wpDiscuz] Triggering the UserPro modal login/register popupYour function wasn’t adding the class to the link as I mentioned previously. In order to get it to work I had to modify it as follows:
function my_login_link($link){ if(( strpos($link, 'action=login') !== FALSE )||( strpos($link, 'wp-login.php') !== FALSE )){ $link = str_replace('<a', '<a class="popup-login" ', $link); } return $link; } add_filter( 'loginout', 'my_login_link' );
Forum: Plugins
In reply to: [Comments - wpDiscuz] Triggering the UserPro modal login/register popupThanks guys.
I’ve set this up, but in the comments template you have this for logged out users:<p class="wc-must-login"> You must be <a rel="nofollow" href="https://domain.com/wp-login.php?redirect_to=http%3A%2F%2Fdomain.com%2F">logged in</a> to post a comment. </p> </div>
With your code in place, the class is not applied to this link. Can you suggest how to make the popup trigger for this link?
Cheers
Thanks wookietim I’ll give this a try ??
Thanks – I’ll let you know if I work anything out at my end