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
ALTER TABLE `wp_posts` | |
CHANGE `post_date` `post_date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
CHANGE `post_date_gmt` `post_date_gmt` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
CHANGE `post_modified` `post_modified` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
CHANGE `post_modified_gmt` `post_modified_gmt` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP; |
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 | |
function add_classes_to_crp_post_class( $classes ) { | |
$classes .= ' alignwide'; | |
return $classes; | |
} | |
add_filter( 'crp_post_class', 'add_classes_to_crp_post_class' ); |
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
/* | |
* This isn't a fully working example yet due to limitations in what is available via BlockListBlock | |
*/ | |
import { store as coreStore } from '@wordpress/core-data'; | |
import { useState, useEffect } from '@wordpress/element'; | |
import { useSelect } from '@wordpress/data'; | |
import { useBlockProps } from '@wordpress/block-editor'; | |
import apiFetch from '@wordpress/api-fetch'; | |
import { addFilter } from '@wordpress/hooks'; |
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
# CLOUD_IMG: This file was created/modified by the Cloud Image build process | |
# iptables configuration for Oracle Cloud Infrastructure | |
# See the Oracle-Provided Images section in the Oracle Cloud Infrastructure | |
# documentation for security impact of modifying or removing these rule | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [463:49013] |
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 | |
// The Query. | |
$the_query = new Top_Ten_Query( $args ); | |
// The Loop. | |
if ( $the_query->have_posts() ) { | |
echo '<ul>'; | |
while ( $the_query->have_posts() ) { | |
$the_query->the_post(); |
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 | |
// The Query. | |
$the_query = new CRP_Query( $args ); | |
// The Loop. | |
if ( $the_query->have_posts() ) { | |
echo '<ul>'; | |
while ( $the_query->have_posts() ) { | |
$the_query->the_post(); |
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
<!-- This is the sample markup generated by Better Search v2.3.0 for each article entry --> | |
<article id="post-1011" class="bsearch-post post-1011 post type-post status-publish format-standard has-post-thumbnail hentry category-codex category-corner-case category-featured-images category-images"> | |
<header class="bsearch-entry-header"> | |
<h2 class="bsearch-entry-title"><a href="https://wpnetwork.local/blog/featured-image-horizontal/" rel="bookmark">Featured Image (Horizontal)</a></h2> | |
<p><span class="bsearch_score">Relevance: 75%</span> <span class="bsearch_date">Posted on: March 15, 2013</span></p> | |
</header> | |
<div class="bsearch-entry-content"> |
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 | |
/** | |
* Modify the display the tptn counter to show k and m instead. | |
* | |
* Add this code to your theme's functions.php file or in a file in mu-plugins. | |
* | |
* @param $string $input Formatted list count | |
*/ | |
function tptn_restyle_count( $input ) { |
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 | |
/** | |
* Filter crp_posts_from_date. | |
* | |
* @param string $where The Minimum date of the WHERE clause of the query. | |
* @param int $id Post ID | |
*/ | |
function crp_same_date_from( $where, $id ) { | |
global $wpdb, $post; |
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
/* Vertical Related Posts */ | |
/* The full list */ | |
.crp_related ul li { | |
list-style-type:none; | |
/* float:left; */ | |
margin:0 40px 0 0; | |
width: 230px; | |
} |
NewerOlder