montrealist
Forum Replies Created
-
Oh, I just noticed this at the top of the function:
remove_filter( 'the_content', 'wpautop' );
For some reason the paragraphs are still being populated. Any ideas?
Interesting issue, although I’m guessing it’s too custom to found anywhere, and that you would need to write it yourself. Have you looked into WP’s cron functions?
Forum: Plugins
In reply to: [WP-Members Membership Plugin] [Plugin: WP-Members] Using Email for UsernameYou can easily do it using JavaScript. Just hide the text box on page load, attach an ‘onclick’ handler to the submit button. Inside it grab the value of the ‘e-mail’ field and put it into the ‘username’ field. That way username will always be the same as e-mail in the DB. Not sure how you’d handle validation messages though, as they will not always be making sense after you’ve made your modification.
I recommend jQuery library, as it can be easily included in the page (if it doesn’t get included by default already), by making it a prerequisite for loading your own JS.
Thank you very much Chad, I take off my hat to you for such speedy responses on this board.
I fixed it by altering your code sample to the following:
<?php if( is_user_logged_in() ) { // my wp_query here... } else { if (function_exists('wpmem_securify')) { // display loging prompt as on other pages echo '<h1 class="entry-title">' . get_the_title() . "</h1>"; wpmem_securify(); the_content(); } } ?>
Do you mind posting your solution? Or did you mean that you’ve switched to another plugin?
I have a similar issue, using a custom WP_Query in a custom page template.
If I remove the custom query code and leave the usual
if ( have_posts() )
stuff in – it works fine. Has anyone else seen behaviour like this?Thanks.
Thank you very much for looking into this on such short notice!