This topic has 12 replies, 2 voices, and was last updated 10 years by mg409.

  • Author
  • #100502
     mg409
    Participant

    Hi 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?

     

    #100547
     sharmstr
    Moderator

    Check 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 solution
    #100562
     mg409
    Participant

    Hi 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?

    #100566
     sharmstr
    Moderator

    Why 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 solution
    #100569
     mg409
    Participant

    When 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

    #100577
     sharmstr
    Moderator

    Did 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 solution
    #100580
     mg409
    Participant

    Yep, 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?

    #100587
     sharmstr
    Moderator

    LOL. 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 solution
    #100588
     mg409
    Participant

    Great, thanks very much!

    #100594
     sharmstr
    Moderator

    No 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 solution
    #100617
     mg409
    Participant

    No 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 found

    Rather than: http://se3ds.com/membership-account/membership-levels/

    What am I doing wrong?

    #100621
     sharmstr
    Moderator

    PMPro > 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
    #100627
     mg409
    Participant

    Perfect!

    Cheers

Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?