WPChina
Forum Replies Created
-
Yes a few page refreshes and it returns.
Wow that’s great! May I ask where you acquired the code? Is there a page somewhere of more snippets like this for other uses?
My table has lots of rows and the the Total that is calculated is this number: 267.15999999999985. However none of my numbers have more than 2 decimal places. Is there a method in the custom command to limit output to 2 decimal places?
Forum: Plugins
In reply to: [Publish To Apple News] “API: DATE_NOT_RECENT” errorI do see this thread:
https://www.ads-software.com/support/topic/there-has-been-an-error-with-the-api-date_not_recent/And I double-checked and my server and PHP times are aligned and working fine.
Forum: Plugins
In reply to: [WP Hide Post] Latest update crashed entire server!# uptime
14:07:16 up 3:35, 2 users, load average: 1.12, 0.94, 0.91I am still seeing higher load with the new update issued today. Usually I have a load of 0.30. And when I turn on and off the plugin, the load goes up and down, so it’s definitely related.
Forum: Plugins
In reply to: [WP Hide Post] Latest update crashed entire server!However, the code still seems not so optimized. I see a small spike since updating it. Server is fine, but it went from this:
# uptime
12:16:48 up 1:44, 1 user, load average: 0.39, 0.50, 0.45to this:
# uptime
12:18:48 up 1:46, 1 user, load average: 1.24, 0.73, 0.54Forum: Plugins
In reply to: [WP Hide Post] Latest update crashed entire server!A new version was just updated by the developer about 10 minutes ago. I installed it and all seems to be working well now ??
Thank you @mohammed_kaludi and @amandato for your feedback.
Is it possible to use the ampforwp_before_content_hook within the functions.php as a conditional to push out similar code as what I use for the single.php? That way my users/admins need not touch anything in WP besides just uploading their podcasts.
So I can place it in in functions.php and IF it is an AMP page it outputs $episode_content before the content?
That’s the reason we also have this conditional php in the theme template was because admins/users were not so savvy with pasting a simple shortcode in the Post editor.
I’m sorry for delay but my email alerts from this forum were not being tagged correctly in my inbox. It’s all fixed now.
Ok I’m still having problems.
So I did more research and I see this is how my single.php is outputting like this:
<?php if ( in_category('487') ) : ?> <?php if( $episode_content = get_the_powerpress_content() ) { ?> <fieldset class="episode-box"> <legend>HEAR THE PODCAST NOW</legend> <?php echo $episode_content; ?> </fieldset> <?php } ?> <?php endif ; ?>
But that code should work for AMP too, right?
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Embedding PowerPress into AMP?Ok, no problem and no rush, and many thanks for your help~ You can also let me know if I can help test for you because I run 2 sites using this configuration.
The “amp + accelerated-mobile-pages” is a great plugin because it removes the need to do lots of coding on display of the pages. But the downside is that ease of use means some things can not be easily tweaked ?? So in the meantime I am trying to figure out some conditionals to use in the Posts to use different players when using returning the */amp pages.
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Embedding PowerPress into AMP?Many thanks for your help @amandato!
The https://www.ads-software.com/plugins/accelerated-mobile-pages/ plugin requires Automattic’s AMP plugin https://www.ads-software.com/plugins/amp/
So they must both be activated. Here are the install details: https://www.youtube.com/watch?v=zzRy6Q_VGGc
So there seems to be some reason why they are conflicting somehow. Maybe an easy fix?
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Embedding PowerPress into AMP?Thanks for the info Angelo. We’re using the default AMP from Automattic and the “AMP for WP – Accelerated Mobile Pages for WordPress” plugin for output.
Forum: Plugins
In reply to: [PowerPress Podcasting plugin by Blubrry] Embedding PowerPress into AMP?Hello, thanks for your quick response! I see the problem happening on 2 different AMP sites with PowerPress running. Is there a way I can send you the URLs outside of this forum? I would rather not make them public…
Forum: Developing with WordPress
In reply to: Problem with Conditionals in functions.phpWorks excellent! Thanks so much~
@isabel104 : got it and this makes sense. The way this plugin works and creates the templates, they may be able to add it. Getting them to add it rather than Automattic to add it is more likely, unless Automattic would like to prove me wrong ??
- This reply was modified 8 years ago by WPChina.