-
Author
-
January 26, 2016 at 11:25 #100502
mg409
ParticipantHi there
I’m looking to add a pay per post function to your theme.
The idea is for the portfolio items to be viewed for a certain amount of time for a small cost.
I’ve searched through many plugins, however, am having no luck, do you have any suggestions?
January 26, 2016 at 15:25 #100547sharmstr
ModeratorCheck out paid membership pro. http://www.paidmembershipspro.com/pricing/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 26, 2016 at 16:11 #100562mg409
ParticipantHi There
Thanks for your reply, I am trying to use the paid membership pro shortcodes [membership level=”2″]… [/membership] for a custom post type (portfolio items).
The Kleo theme uses visual composer, and I find that it does not work properly. Only if I return to the classic mode and delete the [vc_row][vc_column][vc_column_text] & [/vc_column_text][/vc_column][/vc_row] which surrounds the [membership level=”2″] shortcode does it work. However, if I want to amend this portfolio item it reverts back to not working.
Do you have any suggestions?
January 26, 2016 at 16:22 #100566sharmstr
ModeratorWhy not just add the PMPro meta box to the portfolio editor? http://www.paidmembershipspro.com/add-pmpro-membership-level-meta-box-to-a-custom-post-type/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 26, 2016 at 16:33 #100569mg409
ParticipantWhen I add that code to the functions.php I get this error message:
Parse error: syntax error, unexpected ‘<‘ in /home1/mg409/public_html/wp-content/themes/se3ds/functions.php on line 19
January 26, 2016 at 16:53 #100577sharmstr
ModeratorDid you mistakenly copy the php tags? You should only copy the code within the tags since you have an opening php tag at the beginning of functions.php
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 26, 2016 at 16:58 #100580mg409
ParticipantYep, that’s exactly what I did, lol.
However, I still can’t get it to work. I know very little about this sort of thing.
I’ve added this now:
/*
Add the PMPro meta box to a CPT
*/
function my_page_meta_wrapper()
{
//duplicate this row for each CPT
add_meta_box(‘pmpro_page_meta’, ‘Require Membership’, ‘pmpro_page_meta’, ‘product’, ‘side’);
}
function pmpro_cpt_init()
{
if (is_admin())
{
add_action(‘admin_menu’, ‘my_page_meta_wrapper’);
}
}
add_action(“init”, “pmpro_cpt_init”, 20);
?>I guess I need to specify that it is a portfolio custom post type somewhere?
January 26, 2016 at 17:27 #100587sharmstr
ModeratorLOL. Yes. Change ‘product’ to ‘portfolio’
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 26, 2016 at 17:36 #100594sharmstr
ModeratorNo problem. I should have told you to change that from the beginning. Sorry.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 26, 2016 at 18:19 #100617mg409
ParticipantNo worries, another quick question, however this might be better asked to pmpro.
I’m having problems directing people to the register page from a page with paid content in it.
The post is restricted and a there is a message saying
“This content is for SHORT and LONG members only.
Log in – Register ” Which is good, however when I click the register button it takes me to: http://se3ds.com/login/?action=register
Error 404 – page not foundRather than: http://se3ds.com/membership-account/membership-levels/
What am I doing wrong?
January 26, 2016 at 18:37 #100621sharmstr
ModeratorPMPro > Advanced: Change the link in the messages
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Plugins questions’ is closed to new topics and replies.