Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #390718

    HI
    I am adding a membership option to my site, just looking at the options, and have installed wp member as you recommended in your plugins guide. I can see how to block/unblock pages and posts, but my site is mostly portfolio items and I need to be able to block/unblock individual items. I see there is a custom post type called “portfolio” labelled “portfolio items” but I don’t know how to access that in wp members. Can you help me understand how to do this? I have looked at the Custom Post Type UI Plugin. but am not sure I need it as WP has already made the “portfolio” post type, and I also don’t see how to access the post types made through that plugin, or how to assign them to the portfolio items. Am I thinking about this the wrong way?

    thanks for your help, new to this stuff,
    Nancy

    #391448

    Hey Munford!

    Based off of their FAQ page, http://rocketgeek.com/plugins/wp-members/users-guide/faqs/, it looks like you have to add a custom field to the post with a name of “unblock” and a value of “1”.

    Regards,
    Elliott

    #391909

    Yes I looked at that but don’t understand how to do it. :(

    #391991

    Hey!

    Please edit your post and click “Screen options” on the top right corner and check “Custom fields”, then scroll below post content and add a new custom field with name “unblock” and value “1” – http://i.imgur.com/s9yz96v.png

    Cheers!
    Yigit

    #392595

    I don’t see that screen option in my portfolio items – only on posts and pages. I don’t understand how to add the portfolio post type so that wp members registers it. do you? Their support page is not so helpful to me.
    thanks so much
    Nancy

    #393182

    Hey!

    The screen options link is on the top right hand corner of your screen when you edit your posts. It should be on all post types.

    If it’s still not working when adding the custom field then it would be best to contact the plugin support for more info.

    Best regards,
    Elliott

    #393662

    HI Elliot,
    I understand how it’s supposed to work – but my portfolio items are not being seen as a custom post type.
    I don’t get how to set that, and the WP_members support is locked by a paywall. I don’t see any other settings on
    the plugin itself. Do you know any tricks? I know it is not your software, but doesn’t Enfold make the portfolio items
    into a custom post type called “portfolio”?

    see: http://imgur.com/i6y6fFp & http://imgur.com/HGfrPhl

    thanks
    Nancy

    #394046

    Hi!

    Please add this on functions.php to enable custom fields on portfolio items:

    add_filter('avf_portfolio_cpt_args', 'avf_portfolio_add_custom_fields', 1);
    function avf_portfolio_add_custom_fields($args) {
    	$args['supports'] = array('title','thumbnail','excerpt','editor','comments', 'custom-fields', 'page-attributes');
    	return $args;
    }

    Test the solution provided above: https://kriesi.at/support/topic/custom-post-types-wp-member/#post-391448

    Cheers!
    Ismael

    #394157

    HELP!
    I added that code to my child theme functions.php and it crashed my site – edited it via ftp and now it’s back. Just a blank page before and not able to load the admin or site. Can you check that code? I got an error on one line when I edited it out.
    thanks
    N

    • This reply was modified 9 years, 10 months ago by Munford.
    #394925

    Hi!

    Works fine on our installation. This should enable the custom fields or meta data for the portfolio items. Please get the code here: http://pastebin.com/cP303U3m

    Best regards,
    Ismael

    #394953

    thanks so much – yes now I got it working. I see how to block (or unblock) the portfolio items now – it must be done on a page by page basis like that, right?

    I think I found an easier solution by using this plugin: http://wordpress.org/extend/plugins/wordpress-access-control/, if anyone else needs to block unblock pages or posts. It’s seems much easier to use.

    • This reply was modified 9 years, 10 months ago by Munford.
Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘custom post types & wp member’ is closed to new replies.