Tagged: custom post types
-
AuthorPosts
-
February 4, 2015 at 1:43 pm #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,
NancyFebruary 5, 2015 at 5:23 pm #391448Hey 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,
ElliottFebruary 6, 2015 at 11:08 am #391909Yes I looked at that but don’t understand how to do it. :(
February 6, 2015 at 12:56 pm #391991Hey!
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!
YigitFebruary 8, 2015 at 1:00 am #392595I 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
NancyFebruary 9, 2015 at 5:54 pm #393182Hey!
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,
ElliottFebruary 10, 2015 at 1:29 pm #393662HI 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
NancyFebruary 10, 2015 at 10:40 pm #394046Hi!
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!
IsmaelFebruary 11, 2015 at 9:37 am #394157HELP!
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, 9 months ago by Munford.
February 12, 2015 at 12:18 pm #394925Hi!
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,
IsmaelFebruary 12, 2015 at 12:50 pm #394953thanks 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, 9 months ago by Munford.
-
AuthorPosts
- The topic ‘custom post types & wp member’ is closed to new replies.