Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<?php | |
//* Remove breadcrumbs | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
//* Force full width content | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove entry meta in entry header | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); |
//* Move Post Title and Post Info from inside Entry Header to Entry Content on Posts page | |
add_action( 'genesis_before_entry', 'reposition_entry_header' ); | |
function reposition_entry_header() { | |
if ( is_home() ) { | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); |
<?php | |
# Register custom post types on the 'init' hook. | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 1.0.0 | |
* @access public |
<?php | |
/* | |
Plugin Name: Heartbeat API Demo | |
Plugin URI: http://www.strangerstudios.com/wp/heartbeat-api-demo | |
Description: Minimal example demonstrating the WordPress Heartbeat API being added in WP version 3.6. | |
Version: .1 | |
Author: strangerstudios | |
If logged in as a user and viewing the frontend of your website, | |
every 15 seconds you should see the following in your Javascript console: |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
'rewrite' => true | |
'public' => true 'publicly_queryable' => true /cpt-slug/cpt-post-slug Loads fine | |
'public' => false 'publicly_queryable' => true /cpt-slug/cpt-post-slug Loads fine | |
'public' => true 'publicly_queryable' => false /cpt-slug/cpt-post-slug 404 Error | |
'public' => false 'publicly_queryable' => true /cpt-slug-cpt-post-slug 404 Error | |
'rewrite' => false | |
'public' => true 'publicly_queryable' => true /?cpt-slug=cpt-post-slug Loads fine | |
'public' => true 'publicly_queryable' => true /?p=ID&post_type=cpt-slug Loads fine | |
'public' => false 'publicly_queryable' => true /?cpt-slug=cpt-post-slug Loads fine |
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |