Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to force Author pages for members with (0) zero published posts?

@nahummadrid

Participant

” I think perhaps more what you want to be doing is to to force create a page for that user if one doesn’t exist using user name to name the page then you can do a !get_page_by_title(‘user_name’) wp_insert_post()…” — When you referred to “pages” here — I thought you meant creating WP pages for every author using their username…. so then i’d be creating a wp page for every http://www.mysite.com/username1, http://www.mysite.com/username2 is that not what you meant?

When I refer to “pages” I am talking about author template pages for authors – http://www.mysite.com/author/username not the post type. :) Sorry of any confusion.

Then i guess the best thing is to automatically publish a post for every member on each site. Now how to do this for all current members and then do it automatically for all new members???

Skip to toolbar