Tag Info

New answers tagged

1

You shouldn't really need to "exclude" anything. Just make use of the built in loop tracking. WP_Query will "remember" where you left off. For example: if (have_posts()) { while (have_posts()) { the_post(); echo 'firstpost##'; the_content(); echo '##endfirstpost'; break; } } // do some other stuff if (have_posts()) { while ...


0

Just giving you a general idea which may help you. You can try something like below in WordPress - 1) Add a functionality to have usermeta as active or pending e.g. update_user_meta($user_id, '_user_custom_status', 'active'); 2) Do not show any post for non logged in user. 3) On login, check for user with subscriber role and check its status from ...



Top 50 recent answers are included