All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.

Author Topic: WP-Email and WPML  (Read 1582 times)

0 Members and 1 Guest are viewing this topic.

Offline calypso

  • Newbie
  • *
  • Posts: 4
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: my own
WP-Email and WPML
« on: 20 May 2011, 04:35 »
Hi,
I'm using Wordpress 3.1.2 and WP-Email 2.52

I'm using WPML to translate my site, I find when emailing from the translated version it cannot get the post details. The post ID is sent in the form but the query_posts function in process_email_form cannot retrieve the post.

I tried troubleshooting and created a blank page with query_posts and specifically called a translated post by ID and it won't retrieve it. I gather this has something to do with how WPML treats translated posts but I'm stumped.

To clarify, this is the part that seems to fail in the process_email_form function

$p = intval($_POST['p']);
$query_post = 'p='.$p;
query_posts($query_post);
if(have_posts()) {
//do some processing
}

$_POST['p'] does have the ID of the post, but fails on the if.

Can you help?
« Last Edit: 20 May 2011, 06:21 by calypso »

Offline calypso

  • Newbie
  • *
  • Posts: 4
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: my own
Re: WP-Email and WPML
« Reply #1 on: 23 May 2011, 08:16 »
ok in case anyone else has this problem with WPML, the "adjust ids" option has to be turned off and the wp-email.php query_posts has to be adjusted to this:

$query_post = 'p='.$p.'&suppress_filters=true';