Title: ashpriom's Replies | WordPress.org

---

# ashpriom

  [  ](https://wordpress.org/support/users/ashpriom/)

 *   [Profile](https://wordpress.org/support/users/ashpriom/)
 *   [Topics Started](https://wordpress.org/support/users/ashpriom/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ashpriom/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ashpriom/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ashpriom/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ashpriom/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ashpriom/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] WebSocket connection to 'wss://public-api.wordpress.com/pinghub/wp… failed 403](https://wordpress.org/support/topic/websocket-connection-to-wsspublic-apiwordpresscompinghubwp-failed-403/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/websocket-connection-to-wsspublic-apiwordpresscompinghubwp-failed-403/page/2/#post-7328421)
 * Please see the answer from davor.altman.
 * If it’s not fixed, please try deactivating other plugins one by one, to find 
   possible conflict with Jetpack.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Problem Embedding a Google Calendar in PHP File with Shortcode](https://wordpress.org/support/topic/problem-embedding-a-google-calendar-in-php-file-with-shortcode/)
 *  Thread Starter [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/problem-embedding-a-google-calendar-in-php-file-with-shortcode/#post-6740667)
 * Hi Nick,
 * Thanks for your reply. I’m sure it’s going to work, however, as the design of
   grid view has been changed I have reverted to an older version. We need it look
   like it used to be. I am planning to redesign our page so that we can use the
   latest version.
 * Can you tell me is there any chance that – because I am using an older version
   the plugin can break? Does this plugin have critical dependency on Google Calendar
   API?
 * Thanks,
    Syed
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Simple Calendar - Google Calendar Plugin] First class plug-in and support](https://wordpress.org/support/topic/first-class-plug-in-and-support/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/first-class-plug-in-and-support/#post-8031587)
 * I agree. Although it’s not working for me now, I appreciate the effort behind
   this plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Problem Embedding a Google Calendar in PHP File with Shortcode](https://wordpress.org/support/topic/problem-embedding-a-google-calendar-in-php-file-with-shortcode/)
 *  Thread Starter [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/problem-embedding-a-google-calendar-in-php-file-with-shortcode/#post-6740545)
 * Hi Nick, it’s in my homepage template named home.php. I have always enqueue enabled.
 * Thanks,
    Syed
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] pll_get_post() function is not working](https://wordpress.org/support/topic/pll_get_post-function-is-not-working/)
 *  Thread Starter [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/pll_get_post-function-is-not-working/#post-6402130)
 * Alright, I figured it out. Some obvious that confused me.
 * Say for instance, if you are on a French post, but you want to grab the ID of
   its English counterpart, do this:
 *     ```
       $postID = get_the_ID();
       if (function_exists('pll_current_language')) {
       $currentLang = pll_current_language('slug');
       }
       $translationID = pll_get_post($postID,'en');
       ```
   
 * First detect the current post ID and its language. Okay.
    Then apply the `pll_get_post(
   $postID, "language code")`. The “en” here is the language code for the target
   post ID. For instance if you want German counterpart’s ID, it would be ‘de’, 
   and vice versa.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Language files](https://wordpress.org/support/topic/language-files-21/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358629)
 * Hi all,
 * I can confirm that this is indeed a plugin compatibility issue. I am migrating
   from Qtranslate to Polylang, finally, and with Polylang the French version of
   the calendar works fine. You can see [here](http://synstudio.staging.wpengine.com/french/)
 * There is an option in Polylang to enable/disable translation of Google Calendar
   Events. I have it enabled in my settings.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Language files](https://wordpress.org/support/topic/language-files-21/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358627)
 * Hi Fulvio,
 * Same here. I did the update and cleared cache but the problem is still there.
   You can see it in action [here](http://synstudio.staging.wpengine.com/fr/). I
   can give you access if you want.
 * The way I see it, it’s a compatibility issue with other language plugins like
   WPML and Qtranslate. I am thinking how does the calendar know the current language“
   after” it makes the AJAX call to switch months? Because I am using Qtranslate
   and the current language slug is “fr”, but the problem is it won’t be same for
   all other plugins…it could be something like “Fr” or “French”. So I see this 
   as a compatibility issue with other plugins.
 * Thanks for the update. If I find out anything I will post here.
 * P.S. thanks [@simplemediaca](https://wordpress.org/support/users/simplemediaca/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Language files](https://wordpress.org/support/topic/language-files-21/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358602)
 * Hi,
 * I guess the change is the php-calendar.php file only? I replaced that file from
   the branched version; then cleared plugin and browser cache, but still same problem.
   Does that mean it’s not really those filter definitions? My guess is it’s the
   AJAX call, which doesn’t restore language parameter when it refreshes the calendar.
 * I plan to analyze the button click and AJAX call. Will let you know if I find
   something interesting.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Language files](https://wordpress.org/support/topic/language-files-21/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358586)
 * Hi,
 * Thanks for your time. I checked our calendar settings…I’m pretty sure we are 
   not translating months and days manually, neither we are using custom filters
   for `gce_prev_text/gce_next_text`.
 * I applied your update, cleared feed cache and browser cache but the problem still
   persists.
 * 1. I was thinking, if we could find another bilingual website where this problem
   doesn’t exist then it would mean a particular sequence of code execution on our
   site is causing this. But then again, simplemediaca^ said the French translation
   is not happening on his site. He didn’t say the calender doesn’t show French 
   at all or not, for me it shows French until you switch months.
 * 2. I am using QTranslate….it’s a headache. May be the localization file for QTranslate
   is overriding all translations from Google Calendar? I disabled the French language
   file in QTranslate but still the same.
 * The thing is, it knows the language is French but when you switch month, that
   piece of information is reset. Using QTranslate’s `qtrans_getLanguage();` I could
   force php-calendar.php in GCal the current language, but that’s not a good solution
   in terms of future updates. You might want to see this [php-calendar.php](https://dl.dropboxusercontent.com/u/12720893/php-calendar.php),
   it was used as a patch for the same issue in an older version of GCal.
 * Thanks again. I’ll let you know if I find out the fix.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Calendar - Google Calendar Plugin] Language files](https://wordpress.org/support/topic/language-files-21/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/language-files-21/#post-6358537)
 * Hi Fulvio Notarstefano,
 * I am having the same problem with translation and was told that “hey it wasn’t
   like this before”.
 * The English version of the calender is fine.
    Now, if you switch to French version
   of the page, first it’s alright. But when you click on “Préc” or “Suiv” the calender
   becomes English.
 * [See demo.](http://synstudio.staging.wpengine.com/fr/)
 * Thanks.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Custom Field Suite] How to show the fields in the site](https://wordpress.org/support/topic/how-to-show-the-fields-in-the-site/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/how-to-show-the-fields-in-the-site/#post-7980077)
 * You can do this either of these two ways:
 * 1. `CFS()->get('field-name');`
    2. `get_post_meta($postID, 'field-name', true);`
 * I use it for two websites, don’t know but one of the above statements works for
   one website but not the other!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] Varnish purge request to invalid server breaks saving posts and other operations](https://wordpress.org/support/topic/varnish-purge-request-to-invalid-server-breaks-saving-posts-and-other-operations/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [11 years ago](https://wordpress.org/support/topic/varnish-purge-request-to-invalid-server-breaks-saving-posts-and-other-operations/#post-4935501)
 * Hi,
 * I am not using W3 Total Cache but still encountering this error –
 * [error] [client IP address] purge_varnish_cache() failed for: (localhost) #^(
   staging\\.mysite\\.com)$# #(/making-comics-2-advanced(.*))#, referer: [http://staging](http://staging)\\.
   mysite\\.com/wp-admin/post.php?post=9673&action=edit
 * Is there any known workaround? Whenever I update the page it breaks.
    I’ll post
   again if I find a solution.
 * Thanks.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Similar posts appearing twice at the bottom of certain posts…](https://wordpress.org/support/topic/similar-posts-appearing-twice-at-the-bottom-of-certain-posts/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/similar-posts-appearing-twice-at-the-bottom-of-certain-posts/#post-4997522)
 *     ```
       <!-- Most popular -->
       <?php if ( get_theme_mod( 'post_after_popular' ) ): ?>
       	<?php foreach ( get_the_category() as $category ): ?>
       		<div class="similar-posts">
       			<h3 class="similar-posts_title"><?php _e( 'জনপ্রিয় ছবি', 'eqfw'); ?></h3>
   
       			<?php
       				the_widget( 'Report_Widget_Post_List', array(
       					'style' => 'small',
       					'number' => 5,
       					'category' => false,
       					'title' => '',
       					'tag' => false,
       					'show_categories' => 'on',
       					'additional_parameters' => '',
       					'additional_args' => array(
       						'orderby' => 'meta_value_num',
       						'meta_key' => 'post_views_count',
       						'order' => 'DESC',
       						// 'date_query' => array( array( 'after' => '-30 days' ) ),
       						'post__not_in' => array( get_the_ID() )
       					)
       				), array(
       					'before_title' => '<div class="hide-title">',
       					'after_title' => '</div>'
       				) );
       			?>
       		</div>
       	<?php endforeach; ?>
       ```
   
 * I believe this happens when you have more than one category for a post. It runs
   a foreach loop.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Similar posts appearing twice at the bottom of certain posts…](https://wordpress.org/support/topic/similar-posts-appearing-twice-at-the-bottom-of-certain-posts/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/similar-posts-appearing-twice-at-the-bottom-of-certain-posts/#post-4997520)
 * Hello Steven,
 * Are you using Report? I am using that theme and it’s similar.
    Which plugin did
   you remove?
 * Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage] Media are not uploading to Amazon S3](https://wordpress.org/support/topic/media-are-not-uploading-to-amazon-s3/)
 *  [ashpriom](https://wordpress.org/support/users/ashpriom/)
 * (@ashpriom)
 * [12 years ago](https://wordpress.org/support/topic/media-are-not-uploading-to-amazon-s3/#post-4685133)
 * My problem was solved by editing my user policy to this –
 *     ```
       {
         "Statement": [
           {
             "Effect": "Allow",
             "Action": [
               "s3:ListBucket",
               "s3:GetBucketLocation",
               "s3:ListBucketMultipartUploads"
             ],
             "Resource": "arn:aws:s3:::celingest-cdn",
             "Condition": {}
           },
           {
             "Action": [
               "s3:AbortMultipartUpload",
               "s3:DeleteObject*",
               "s3:GetObject*",
               "s3:PutObject*"
             ],
             "Effect": "Allow",
             "Resource": [
               "arn:aws:s3:::celingest-cdn/*"
             ]
           },
           {
             "Effect": "Allow",
             "Action": "s3:ListAllMyBuckets",
             "Resource": "*",
             "Condition": {}
           }
         ]
       }
       ```
   
 * [http://pastebin.com/raw.php?i=ydiQLXGY](http://pastebin.com/raw.php?i=ydiQLXGY)
   
   [http://blog.celingest.com/en/2013/07/19/tutorial-creating-cdn-wordpress-cloudfront-s3/](http://blog.celingest.com/en/2013/07/19/tutorial-creating-cdn-wordpress-cloudfront-s3/)

Viewing 15 replies - 1 through 15 (of 15 total)