WP Infobox

WP Infobox

Add an info box to current post. You can specify title, text and a bullet list, the info box will be automatically added to all single pages that display the_content.
Example of the result (That’s the ”More applications”-box):

Example of configuration from ”Write post”:

Download.

amoxicillin 875 buy amoxicillin amoxicillin allergy viagra sans ordonnance amoxicillin and clavulanate amoxicillin dosierung alcohol and amoxicillin amoxicillin over counter walgreens amoxicillin potassium clavulanate viagra 100mg tablets retail price cost of viagra adult dosage for amoxicillin suspension amoxicillin dosage for children amoxicillin for strep throat buy generic viagra viagra without a doctor prescription usa amoxicillin side effects in women amoxicillin 500mg capsules sophia viagra amoxicillin for uti amoxicillin overdose clavulanate amoxicillin amoxicillin clav antibiotic amoxicillin viagra 100 mg viagra for sale viagra for sale uk amoxicillin clavulanate potassium what does viagra do amoxicillin trihydrate side effects of amoxicillin 500 mg viagra side effects where to buy viagra how long does viagra last revatio vs viagra pfizer viagra 875 mg amoxicillin viagra for men amoxicillin and alcohol amoxicillin pil amoxicillin liquid augmentin vs amoxicillin amoxicillin antibiotic viagra generic amoxicillin dosage for adults canadian viagra amoxicillin clavulanate viagra activate can amoxicillin canada viagra pfizer viagra coupons from pfizer viagra prices amoxicillin medscape viagra ohne rezept aus deutschland viagra cost adult dosage of amoxicillin suspension free viagra viagra wikipedia order viagra amoxicillin pregnancy viagra canada viagra pillen kruidvat viagra on line viagra 50mg viagra generic viagra viagra wiki what is amoxicillin used for allergic to amoxicillin amoxicillin 500 viagra samples side effects of viagra side effects of amoxicillin herbal viagra viagra coupons sex viagra for women does amoxicillin expire viagra kaufen what does amoxicillin treat viagra without a doctor prescription equipe argentine viagra amoxicillin 875 mg levitra vs viagra buy viagra amoxicillin bnf amoxicillin 500mg viagra vs cialis amoxicillin dosing viagra nebenwirkungen viagra on line no prec amoxicillin uti viagra soft amoxicillin dosage viagra price amoxicillin and clavulanate potassium amoxicillin for sinus infection viagra generico viagra bestellen amoxicillin spc viagra online amoxicillin rash buying viagra amoxicillin reaction amoxicillin 1000 viagra receptfritt viagra uk viagra dosage bnf amoxicillin viagra tablets viagra substitute viagra 100mg amoxicillin and clavulanate potassium tablets cialis vs viagra allergic reaction to amoxicillin female viagra viagra coupon over the counter viagra generic viagra 100mg discount viagra amoxicillin alcohol amoxicillin viagra sex how does amoxicillin work viagra single packs viagra medicine best price viagra buy viagra online viagra natural cheap viagra online viagra amoxicillin uses amoxicillin 500 mg viagra from canada is amoxicillin amoxicillin pediatric dosing viagra alternatives amoxicillin for cats amoxicillin diarrhea viagra 100 how does viagra work is amoxicillin penicillin ampicillin vs amoxicillin penicillin vs amoxicillin how to use viagra viagra for women women viagra natural viagra fish amoxicillin amoxicillin side effects viagra tesco what is viagra amoxicillin for dogs utilisation viagra viagra en ligne livraison 24h viagra costs fish mox amoxicillin amoxicillin allergic reaction what is amoxicillin viagra alternative viagra pill thuoc amoxicillin viagra tablet amoxicillin pot clavulanate viagra pills viagra effects amoxicillin capsules viagra ohne rezept auf rechnung amoxicillin for ear infection amoxicillin 250mg

Delicious Curator

http://wordpress.org/extend/plugins/delicious-curator/

Create posts based on bookmarks from Delicious.com

can amoxicillin viagra alternative viagra generico viagra wiki pfizer viagra penicillin vs amoxicillin levitra vs viagra viagra viagra tablets viagra price side effects of amoxicillin 500 mg viagra prices free viagra order viagra viagra pillen kruidvat viagra pill amoxicillin 875 allergic reaction to amoxicillin equipe argentine viagra amoxicillin alcohol viagra generic amoxicillin and alcohol amoxicillin clavulanate 875 mg amoxicillin viagra en ligne livraison 24h is amoxicillin penicillin viagra 100mg tablets retail price viagra 50mg adult dosage of amoxicillin suspension buy viagra cialis vs viagra viagra without a doctor prescription female viagra amoxicillin dosierung amoxicillin dosage for children amoxicillin pregnancy viagra on line no prec viagra sans ordonnance thuoc amoxicillin amoxicillin and clavulanate buy generic viagra amoxicillin for cats viagra alternatives viagra on line amoxicillin uti online viagra amoxicillin side effects in women canadian viagra viagra tesco natural viagra what does viagra do amoxicillin 250mg buy amoxicillin viagra coupon women viagra viagra activate is amoxicillin viagra dosage amoxicillin bnf viagra medicine sex viagra for women discount viagra amoxicillin for ear infection viagra coupons viagra soft viagra ohne rezept auf rechnung amoxicillin allergy amoxicillin rash cost of viagra buying viagra viagra online how to use viagra sophia viagra viagra cost amoxicillin dosage augmentin vs amoxicillin where to buy viagra viagra for sale amoxicillin amoxicillin for uti fish amoxicillin what does amoxicillin treat amoxicillin pil adult dosage for amoxicillin suspension amoxicillin potassium clavulanate what is viagra ampicillin vs amoxicillin over the counter viagra viagra for sale uk viagra uk viagra nebenwirkungen viagra for men viagra kaufen viagra effects viagra sex viagra bestellen cheap viagra amoxicillin 500 side effects of viagra does amoxicillin expire amoxicillin for strep throat amoxicillin 500mg capsules viagra from canada viagra wikipedia amoxicillin overdose buy viagra online amoxicillin clav amoxicillin allergic reaction viagra ohne rezept aus deutschland amoxicillin dosage for adults generic viagra 100mg viagra substitute amoxicillin for sinus infection viagra 100mg amoxicillin liquid how does viagra work antibiotic amoxicillin viagra natural alcohol and amoxicillin generic viagra amoxicillin side effects amoxicillin 500mg fish mox amoxicillin canada viagra amoxicillin antibiotic amoxicillin and clavulanate potassium allergic to amoxicillin viagra tablet amoxicillin 500 mg amoxicillin medscape what is amoxicillin viagra 100 mg viagra 100 amoxicillin diarrhea amoxicillin pot clavulanate utilisation viagra amoxicillin and clavulanate potassium tablets amoxicillin clavulanate potassium viagra single packs viagra canada pfizer viagra coupons from pfizer amoxicillin over counter walgreens viagra samples clavulanate amoxicillin amoxicillin 875 mg viagra for women amoxicillin reaction how long does viagra last amoxicillin 1000 bnf amoxicillin herbal viagra viagra pills amoxicillin capsules amoxicillin dosing best price viagra viagra vs cialis viagra side effects how does amoxicillin work what is amoxicillin used for side effects of amoxicillin amoxicillin spc amoxicillin pediatric dosing viagra costs amoxicillin for dogs viagra without a doctor prescription usa viagra receptfritt amoxicillin uses revatio vs viagra amoxicillin trihydrate

Shortcode Usage, another WordPress plugin by windyjonas

Have you ever been in a situation where you have site with lots of content, a theme with lots of shortcodes and you have no idea where those shortcodes are used and if it is safe to remove any of them?

With this plugin you can search through all content and list the posts, pages and CPTs that use a specific shortcode, with direct links to edit each post.

Download Shortcode Usage from wordpress.org


maxitems = 500;
	}
	public function init() {
		add_management_page( __('Shortcode Usage', 'busu'), __('Shortcode Usage', 'busu'), 'read', 'shortcode-usage', array(&$this, 'shortcode_page') );
	}

	public function shortcode_page() { ?>
		

posts " . "where post_content like '%[{$shortcode}%' " . "and post_status in ('publish', 'draft') " . "and post_type not in ('revision', 'attachment', 'nav_menu_item') " . "order by post_title " . "limit {$this->maxitems}"; $myrows = $wpdb->get_results( $q ); if ( ! empty( $myrows ) ) : ?>

Usage of shortcode []

post_type; ?> ID, '', '', $row->ID); ?> <a target="_blank" href="ID); ?>">post_title; ?> post_status; ?> post_date; ?>

<input type="text" name="shortcode" value="" /> <input type="submit" value="" />

Registered shortcodes

$function ) : ?>

<a href="">

<?php } } $bu_shortcode_usage = new BuShortcodeUsage(); add_action( 'admin_menu', array(&$bu_shortcode_usage, 'init') );

amoxicillin 250mg amoxicillin 500 mg viagra activate viagra tablets buying viagra amoxicillin rash is amoxicillin viagra pill amoxicillin viagra dosage viagra single packs amoxicillin for uti revatio vs viagra side effects of amoxicillin 500 mg ampicillin vs amoxicillin equipe argentine viagra penicillin vs amoxicillin cheap viagra viagra alternative viagra coupons viagra for sale amoxicillin 875 viagra wikipedia antibiotic amoxicillin female viagra amoxicillin trihydrate how does amoxicillin work levitra vs viagra amoxicillin pediatric dosing over the counter viagra pfizer viagra amoxicillin 500 viagra side effects amoxicillin dosage for children viagra 100 mg amoxicillin clavulanate potassium viagra coupon viagra on line no prec viagra from canada best price viagra amoxicillin pot clavulanate sophia viagra amoxicillin clavulanate 875 mg amoxicillin viagra natural viagra pills amoxicillin uti amoxicillin medscape order viagra viagra ohne rezept auf rechnung viagra wiki utilisation viagra amoxicillin and alcohol alcohol and amoxicillin amoxicillin for strep throat amoxicillin allergy viagra price amoxicillin antibiotic viagra canada amoxicillin and clavulanate cialis vs viagra amoxicillin 500mg amoxicillin dosage amoxicillin dosage for adults viagra alternatives viagra tesco amoxicillin diarrhea viagra nebenwirkungen amoxicillin uses amoxicillin alcohol what does viagra do viagra for women viagra receptfritt bnf amoxicillin viagra medicine amoxicillin for cats adult dosage of amoxicillin suspension cost of viagra viagra pillen kruidvat viagra samples canadian viagra amoxicillin and clavulanate potassium augmentin vs amoxicillin discount viagra viagra costs viagra soft amoxicillin pil viagra generico amoxicillin over counter walgreens viagra sans ordonnance generic viagra allergic to amoxicillin how long does viagra last amoxicillin dosierung sex viagra for women online viagra buy viagra online pfizer viagra coupons from pfizer amoxicillin potassium clavulanate buy amoxicillin amoxicillin allergic reaction can amoxicillin viagra for men amoxicillin 1000 allergic reaction to amoxicillin amoxicillin for ear infection viagra cost herbal viagra amoxicillin spc amoxicillin side effects amoxicillin liquid viagra on line viagra effects viagra 100mg free viagra viagra bestellen buy generic viagra viagra 100mg tablets retail price viagra tablet amoxicillin bnf amoxicillin for dogs viagra substitute fish amoxicillin what is viagra buy viagra what does amoxicillin treat clavulanate amoxicillin viagra uk amoxicillin pregnancy adult dosage for amoxicillin suspension what is amoxicillin used for amoxicillin capsules generic viagra 100mg viagra ohne rezept aus deutschland viagra sex amoxicillin side effects in women viagra vs cialis what is amoxicillin viagra 100 viagra kaufen viagra 50mg fish mox amoxicillin viagra en ligne livraison 24h amoxicillin overdose side effects of viagra thuoc amoxicillin how does viagra work where to buy viagra viagra viagra online viagra without a doctor prescription usa does amoxicillin expire amoxicillin clav how to use viagra amoxicillin for sinus infection viagra without a doctor prescription canada viagra side effects of amoxicillin viagra prices amoxicillin and clavulanate potassium tablets amoxicillin 875 mg viagra for sale uk amoxicillin dosing amoxicillin 500mg capsules women viagra natural viagra amoxicillin reaction viagra generic is amoxicillin penicillin

TextMate snippet for PRG-pattern in WordPress

This is free TextMate snippet day here at jonasnordstrom.se. Enjoy, and please let me know if there are any errors.


From wikipedia:

Post/Redirect/Get (PRG) is a web development design pattern that prevents 
some duplicate form submissions, creating a more intuitive interface for 
user agents (users). PRG implements bookmarks and the refresh button in a 
predictable way that does not create duplicate form submissions. 

image from wikipedia

PRG is the pattern to aim for when creating functionality for the WordPress backend (wp-admin). But it’s a pain to keep track of which hooks to use, how the redirection works and stuff like that.
Here’s a TextMate snippet that hopefully will be of some help.

Note: I will add nonce and update this post, just wanted to save the code somewhere when it was in front of me, you know how it is …

<?php 
function ${1:function_name}_page() {

    if ( isset( $POST['action'] ) && !current_user_can( '${2:edit_page}' ) ) {
        return;
    } ?>

    <form action="edit.php" method="post">
        <input type="hidden" name="page" value="${1/\_/-/}-page" />
        <input type="hidden" name="action" value="${3:action-name}" />
        <input type="submit" value="${4:Button Text}" />
    </form>
    <?php
}
function $1() {
    if ( isset(\$_POST['action']) && \$_POST['action'] == '$3') {
        // Do your magic here
        $0;

        \$location = admin_url() . "edit.php?page=" . $_POST['page'] . "&feedback=${5:Feedback+here}";

        \$status = 302;
        wp_redirect( \$location, \$status );
        exit;
    }
}
function add_$1_page() {
    add_management_page( '${6:Page Title}', '${7:Menu Title}', '${8:manage_options}', 
                  '${9:menu-slug}', '${1:function_name}_page' );
}

add_action( 'admin_init', '$1' );
add_action( 'admin_menu', 'add_$1_page' );

wpdb->delete() i WordPress 3.4

En av nyheterna i WordPress 3.4 är att metoden delete har tillkommit till wpdb-klassen. Tidigare fanns av någon anledning bara insert och update.
Enkelt exempel på hur den kan användas:
Vad jag vet finns det ingen inbyggd funktion för att ta bort alla förekomster av ett custom field, före WordPress 3.4 var man tvungen att göra en query direkt i databasen för att få till den funktionaliteten.

  function delete_post_meta_for_all( $meta_key ) {  
     global $wpdb; 
     return $wpdb->query( 
        $wpdb->prepare( "DELETE FROM $wpdb->postmeta WHERE meta_key = %s ",
           $meta_key ) ); 
  } 

Tyvärr måste man fortfarande göra något liknande, men syntaxen är lite mer ”WordPress”:

function delete_post_meta_for_all( $meta_key ) { 
   global $wpdb; 
   $result = $wpdb->delete( "$wpdb->postmeta" , 
      array( "meta_key" => $meta_key) , array( '%s' ) ); 
}

Syntax:

function delete( $table, $where, $where_format = null )
$table: table name
$where: A named array of WHERE clauses (in column => value pairs). Multiple clauses will be joined with ANDs. Both $where columns and $where values should be ”raw”.
$where_format Optional: An array of formats to be mapped to each of the values in $where. If string, that format will be used for all of the items in $where. A format is one of ‘%d’, ‘%f’, ‘%s’ (integer, float, string). If omitted, all values in $where will be treated as strings unless otherwise specified in wpdb::$field_types.
return int|false The number of rows updated, or false on error.

Mer info här