Display wordpress post to static website in the footer

EDIT After a brief chat with Original Poster, the following solution works: Install the Magpie RSS library. Create a folder in the root directory of raminusa.com, name it magpierss Upload 4 files (*rss_fetch.inc*, *rss_parser.inc*, *rss_cache.inc*, and *rss_utils.inc*), and the directory extlib to this new folder In the footer script of raminusa.com (which should be in … Read more

How we get the success messages

You can declare $success variable and use it to display success message as following. Declare $success variable and assign success message to it if user is registered successfully as following : $success=””; if ( ‘POST’ == $_SERVER[‘REQUEST_METHOD’] && !empty( $_POST[‘action’] ) && $_POST[‘action’] == ‘adduser’ ) { $user_pass = wp_generate_password(); $userdata = array( ‘user_login’ => … Read more

Insert Extra fields added in the front end registration form to DB

Why the downvotes for using user meta? That’s how I do it, I store all the extra profile stuff in wp_usermeta table by utilizing update_user_meta. <?php // first validate all $_POST data $validated = $this->validate_and_sanitize(); $username = $validated[‘uname’]; $password = $validated[‘pass’]; $email = $validated[’email’]; $new_user_id = wp_create_user($username, $password, $email); if ( is_wp_error($new_user_id) && array_key_exists(‘existing_user_login’, $new_user_id->errors)) … Read more

Tumblr importer

Not really, no. The importer is an automated tool that grabs content already published in one place and republishes it in another. If you were importing from WordPress to WordPress, then publication status would be imported as well. However, the Tumblr importer uses the Tumblr API to grab everything on your account. If the post … Read more

Option does not save or update upon page refresh

Maybe a little debugging will help. Try this in your piece no.1 $theme = AisisCore_Factory_Pattern::create(‘AisisCore_Template_Builder’); if(isset($_POST[‘aisis_reset’])){ $theme->reset_theme_options(); } $options = get_option(‘aisis_reset’); print_r( $options ); //outputs $options value wp_die(); //will halt further process if($options == ‘true’){ echo ‘<div class=”alert alert-success”><strong>SUCCESS!!!!</strong> All Options have been reset! You can start again!</div>’; update_option(‘aisis_reset’, ‘false’); } What value do you … Read more

Text in permalink

There is no template for “/widget”. Templates are about content types and not URL fragments. IMO your page hack is totally legit. Another way to handle this is to have a widgets category which is the parent of all other categories and change your permalink structure to /%category%/%postname%/

Amending PHP for WordPress Theme

You probably want to amend this line: $wp_query->query(‘post_type=product&paged=’.$paged); To include some more limitations, like &department=Featured. I’m unaware of your whole project’s code structure, so I can’t advise exactly what you’d need to put.

Single.php loses it’s formatting

Ok, try this (untested, so excuse any minor typos/syntax errors). I have amended so that The Loop first checks that there is Posts to show. I’ve also removed the need for $count and the addition of ‘ ‘ by adding any matches to an array, and then outputting them using join(). Hopefully I’ve not gone … Read more