Wp redirect – reset password

(Revised answer) The problem with your code is that the password reset link/URL is missing the proper password reset key and user login slug — the $key (password reset key) and $user_login (user login slug) as you can see below, are both missing (i.e. not defined anywhere in your code): network_site_url(“wp-login.php?action=rp&key=$key&login=” . rawurlencode($user_login), ‘login’) So … Read more

Meta inserted through wp_insert_post gets messed up

So I ended up just adding the meta after inserting the post, which doesn’t give any error. It bypasses the problem without explaining it though… $postarr = array( ‘post_title’ => $link[‘caption’], ‘post_type’ => ‘ct_external_link’, ‘post_status’ => ‘publish’, ‘post_excerpt’ => $link[‘caption’], ); $external_link_id = wp_insert_post($postarr); if( !empty($external_link_id) ) { add_post_meta($external_link_id, ‘ct_external_link_url’, $doc[‘file’], true); if( isset($doc[‘hide’]) ) … Read more

Trying to modify content.php

The answer is in your code. It’s even documented: <?php if (is_search()) { // Only display Excerpts for Search ?> <div class=”entry-summary”> <?php the_excerpt(); ?> <div class=”clearfix”></div> </div><!– .entry-summary –> <?php } else { ?> <div class=”entry-content”> <?php the_content(bootstrapBasicMoreLinkText()); ?> <div class=”clearfix”></div> <?php /** * This wp_link_pages option adapt to use bootstrap pagination style. * … Read more

Check if post visited first time

You can try this, use of custom meta field to do that. In functions.php put this: // add the tracker in your header by using wp_footer hook function is_viewed ($post_id) { if ( !is_single() ) return; /* At times queries performed in other templates such as sidebar.php may corrupt certain conditional tags. For instance, in … Read more