Having a Function Inside of the Loop

Before continuing, please read this: http://www.slideshare.net/andrewnacin/you-dont-know-query-wordcamp-netherlands-2012 It’s by a core WordPress developer and you should consider it required reading. You should never use query_posts, and it’s important to understand how to use loops correctly. That presentation will demonstrate the best practices, how, and why to use them. I can see the approach you’ve taken, what … Read more

How to redirect new WordPress user to previous page after registering

There’s a registration_redirect filter you can use: add_filter( ‘registration_redirect’, ‘wpse_129618_registration_redirect’ ); function wpse_129618_registration_redirect( $redirect ) { if( isset( $_SERVER[‘HTTP_REFERER’] ) && 0 != strlen( $_SERVER[‘HTTP_REFERER’] ) ) { $redirect = esc_url( $_SERVER[‘HTTP_REFERER’] ); } return $redirect; } Alternately, you can edit the PHP that is generating your <form> and add a hidden field named redirect_to, … Read more

Post form as custom post

Within your theme folder create a page names archive-{YOUR_POST_TYPE}.php. In your case archive-roadkills.php. Test whether your archive page is catching this page or not? If yes, then you can edit the page the way you like. Whether copying the code from existing archive.php or your own. Reference: Template Hierarchy Codex

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)