register_setting and AJAX?

WordPress already provides a very nice API for admin / option page tabs. No need to reinvent the wheel on that one. Your Ajax action is “options.php” You need an action that’s linked to a PHP function that gets included by add_action( ‘wp_ajax_YOUR-ACTION-NAME*’, ‘your_php_function’); * YOUR-ACTION-NAME is the action you defined when localizing the script … Read more

Trouble After Update, Removing Plugin

It looks like the the page is not “zoomed” in. It appears that the image: http://www.millermusicllc.com/wp-content/uploads/2010/11/DSC_3508.jpg Is bigger on the first link as apposed to the second link, also styling on the style.css is different in general: First link: <img src=”http://www.millermusicllc.com/wp-content/uploads/2010/11/DSC_3508.jpg” alt=”” title=”miller” width=”320″ height=”330″ class=”alignnone size-medium wp-image-30″> Second link: <img src=”http://www.millermusicllc.com/wp-content/uploads/2010/11/DSC_3508.jpg” alt=”” title=”miller” width=”320″ … Read more

Ajax Slideshow in Post

OK, this turned out to be really simple, flexible and awesome. Your single.php: <div class=”post-body”> <?php the_content(); ?> <div class=”post-pagination”> <?php wp_link_pages(‘before=<p>&after=</p>&next_or_number=number&pagelink= %’); ?> </div> </div> Your script.js: $(document).ready(function(){ jQuery(‘.post-pagination a’ ).live(‘click’, function(e){ e.preventDefault(); var link = jQuery(this).attr(‘href’); jQuery(‘.post-body’).load(link + ‘ .post-body ‘, function(){ jQuery(‘.post-pagination p’).show(); }); return false; }); }); Your post markup: <img … Read more

apply_filters, EMBEDS and AJAX not a friends? [duplicate]

As you haven’t posted, what exactly you’re doing with AJAX, we can just guess. And I guess, that you’re doing it extremly wrong – no need to “hook/filter” in ajax. AJAX is for admin(?) Basically, AJAX stuff is meant to be admin stuff. This means, that you got a wp_ajax_ hook and a wp_ajax_nopriv_ hook, … Read more

Load featured article once in a loop

I was able to find a solution to my own problem. For anyone needing to solve this in the future, WordPress offers a set of conditional statements for just able everything, include pagination. <?php get_header(); ?> <?php if ( ! $paged || $paged < 2 ){ ?> <?php locate_template( ‘featured-post.php’, true, false ); ?> <?php … Read more