This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Setup the Arguments for the Custom Query | |
$args = array( | |
'post_type' => '' | |
); | |
// Create the Custom Query and save it as a variable | |
$the_query = new WP_Query( $args ); | |
// Loop through our Custom Query results | |
if ( $the_query->have_posts() ) : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `wp_postmeta` SET `meta_key` = 'NEW NAME' WHERE `meta_key` = 'OLD NAME' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrapper"> | |
<header> | |
<h1>Header!</h1> | |
</header> | |
<aside> | |
<p>Organic white strong doppio froth white redeye sugar medium single shot cultivar to go. Cup wings, decaffeinated robusta at saucer strong. Et, viennese strong aromatic a qui wings turkish single origin. Iced seasonal, grinder cultivar viennese steamed decaffeinated latte. Redeye so sugar bar cappuccino, cup acerbic, caramelization wings caffeine and espresso.</p> | |
<p>Saucer so, cortado flavour whipped aromatic variety aromatic. Con panna doppio blue mountain at plunger pot macchiato cup ristretto filter. Froth cream robust, viennese cappuccino mocha, whipped macchiato blue mountain beans froth. Mug rich doppio sit ristretto variety americano kopi-luwak. Aromatic half and half robust percolator roast caffeine con panna.</p> | |
</aside> | |
<section class="main"> | |
<ul class="pictures"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chown -R apache:apache uploads/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('WP_USE_THEMES', false); | |
require_once('../../../../wp-load.php'); | |
?> | |
<?php $term = $_POST['term']; ?> | |
<?php $the_query = new WP_Query(array('feature-types'=>$term)); ?> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?><!-- start loop --> | |
<article> | |
<h1><?php the_title(); ?></h1> | |
<?php the_advanced_excerpt(); ?> |