[Plugin: WP-Members] Custom Post Type excerpts give "This content is restricted" text
Hi first off many thanks to Chad for making such an amazing plugin!
I seem to be having a problem with custom post types. I have my main “posts” page for my custom post type is set to display excerpts, but instead of an excerpt from my actual post I get the following message:
This content is restricted to site members. If you are an existing user, please login. New users may register below. Existing Users Login Username Password Remember me New Users RegistrationChoose a Username* First Name* Last Name* Address 1* Address 2 City* State* Zip* Country* Day Phone* Email* *Required field Powered […]
I have tried simplifying my loop for the custom post type page down to the following (which I borrowed from http://codex.wordpress.org/Post_Types, but I still get the same “content is restricted” message:
$args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
echo ‘<div class=”entry-content”>’;
FWIW, the main blog page of my site is also set to display excerpts and works just fine.
Here are what my plugin settings currently look like, though the issue seems to be happening whether or not the “Show excerpts” option is checked or not: http://evanwebdesign.com/screenshots/WP-Members.png
I am using the “Intent” theme from http://themeforest.net/item/intent-business-portfolio-wordpress-theme/2511967 which may be causing some kind of conflict, but I can’t pin it down at this moment.
If anyone can shed some light on this issue it would be greatly appreciated.
UPDATE: If I manually unblock a post from my CPT withe the “unblock” custom field, then the excerpt works.
- The topic ‘[Plugin: WP-Members] Custom Post Type excerpts give "This content is restricted" text’ is closed to new replies.