Are you using custom post type? WP-Email doesn’t work with Custom Post Type
I don’t see why it will give you page not found after you refreshes your permalink.
I would need the step to reproduce it.
Actually yes i am. Is that a problem?
WP-Email doesn’t work with Custom Post Type. I still haven’t figure a way to do it with CPT.
That’s a bit disappointing. Well thanks anyway.
Do you know some plugin with which i can insert recommend via email functionality and that works with custom post types?
Hmm not that I am aware of. But if you do come across, I am interested to know as well.
Here’s one for example:
https://wordpress.org/plugins/af-tell-a-friend/
Seems like it’s working.
Regards
Hello Lester,
i’ve checked out this plugin. It works, but it is very risky to use it since it doesn’t have any spam protection.
Are you maybe able to analyze the plugin, find the solution for CPT and implement it in your plugin?
Regards,
Veljko
I think is a bit difficult, for WP-Email it uses /email/ at the back of the page for the email pages and that is the reason why it doesn’t with with CPT as it might be conflicting.
You can try adding a ?email=1 to your CPT URL, I think it shld work.
I didn’t start this last part. How do you mean to add ?email=1 to URL? In your plugin or in browser when i’m opening the page?
when you opening a page, eg: http://lesterchan.net/blog/2014/04/28/western-digital-my-passport-pro/, add ?email=1 so it becomes http://lesterchan.net/blog/2014/04/28/western-digital-my-passport-pro/?email=1
So in your theme, you cannot use <?php email_link(); ?>
but you have to use <a href="<?php the_permalink(); ?>?email=1">Email</a>
I get it. Ok i will try and let you know if it works.
Hmm, now i have some strange things. If you check out this page:
http://www.pretrazivac.ch/listings/pretrazivac-ch/
You will see that the button doesn’t pull the options from the backend, instead it says %EMAIL_TEXT%.
I also tried to add the code like you explained, but i get only white page. You can see here:
http://www.pretrazivac.ch/listings/pretrazivac-ch/?email=1