Display the Content of a Post with qTip2

Here’s a possible solution: <div id=”sponsors”> <div class=”wrap”> <h1><span>Our Corporate Sponsors</span></h1> <ul class=”lcp_catlist”> <li> <h5 class=”header-sponsor-title”><a href=”http://dacc.fredrixdesign.com/global-imports-bmw-2/” title=”Global Imports BMW”>Global Imports BMW</a></h5><a href=”http://dacc.fredrixdesign.com/global-imports-bmw-2/”><img width=”50″ height=”50″ src=”http://dacc.fredrixdesign.com/wp-content/uploads/bmw-150×150.jpg” class=”attachment-50×50 wp-post-image” alt=”DACC Sponsor” /></a> <span>Hello, I’m text!</span> </li> <li> <h5 class=”header-sponsor-title”><a href=”http://dacc.fredrixdesign.com/caroline-e-taylor-llc-2/” title=”Caroline E. Taylor, LLC”>Caroline E. Taylor, LLC</a></h5><a href=”http://dacc.fredrixdesign.com/caroline-e-taylor-llc-2/”><img width=”50″ height=”50″ src=”http://dacc.fredrixdesign.com/wp-content/uploads/caroline-e-taylor-150×150.jpg” class=”attachment-50×50 wp-post-image” alt=”DACC Sponsor” /></a> … Read more

orderby=meta_value_num creates duplicate posts

As for the edit (leading zeroes): /* will print “001” */ echo sprintf( “%03d”, 1 ); /* will print “00097” */ echo sprintf( “%05d”, 97 ); As for the inital problem: Obviously, I believe your problem description, but if ‘orderby’ => ‘meta_value’ does not produce duplicate results, neither should a change to ‘orderby’ => ‘meta_value_num’. … Read more

Auto Refresh Post List after X seconds

Your answer definitely falls within the realm of AJAX. If you are using a form, try setting the onsubmit eventListener equal to return false; (plus any other needed attributes) like so: <form onsubmit=”return false;”> Then you send a post and parse it with PHP and depending on your desired effect, and the input of the … Read more

How to lock a post or page

You can use the ‘wp_insert_post_data’ filter to set the data being updated to the ones post has right now: add_filter(‘wp_insert_post_data’, ‘prevent_post_edit’, 99, 2); prevent_post_edit ($data, $postarr) { if ( ! isset($postarr[‘ID’]) || empty($postarr[‘ID’]) ) return $data; if ( current_user_can(‘edit_files’) ) return $data; // admin can edit posts // prevent the update only for post and … Read more

Allowing the SoundCloud player to appear in a post excerpt

The excerpt will only fetch the text, triming tags. You need to make a new custom field (you can use Advanced Custom Fields) for the ID of that iframe. Then, you need to edit your content_excerpt.php (I don’t know wich theme are using) and fetch that field instead or below your excerpt. For example: (using … Read more