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
=== Plugin Name === | |
Contributors: (this should be a list of wordpress.org userid's) | |
Donate link: https://example.com/ | |
Tags: tag1, tag2 | |
Requires at least: 4.7 | |
Tested up to: 5.4 | |
Stable tag: 4.3 | |
Requires PHP: 7.0 | |
License: GPLv2 or later | |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
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
function featuredtoRSS($content) { | |
global $post; | |
if ( has_post_thumbnail( $post->ID ) ){ | |
$content = '<a href=" . get_permalink() . " rel="nofollow ugc">' . get_the_post_thumbnail( $post->ID, $imgsize, array( 'style' => 'float:left; margin:0 15px 15px 0;' ) ) . '</a>' . $content; | |
} | |
return $content; | |
} | |
add_filter('the_excerpt_rss', 'featuredtoRSS'); | |
add_filter('the_content_feed', 'featuredtoRSS'); |
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 edit_post_link( $link, $before, $after, $id, $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
server { | |
listen 80; | |
server_name domain.com www.domain.com; | |
return 301 https://domain.com$request_uri; | |
} |
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
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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 template for displaying 404 pages (not found) | |
* | |
* @link https://codex.wordpress.org/Creating_an_Error_404_Page | |
* | |
* @package WordPress | |
* @subpackage Twenty_Seventeen | |
* @since 1.0 | |
* @version 1.0 |
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
define( 'WP_MEMORY_LIMIT', '96M' ); |
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
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 913085 bytes) in /home/content/xx/91/2867391/html/wp-includes/wp-db.php on line 3023 |
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
// Add Title and Description for WordPress category page | |
add_action( 'genesis_before_loop', 'wpism_output_category_info' ); | |
function wpism_output_category_info() { | |
if ( is_category() || is_tag() || is_tax() ) { | |
echo single_term_title(); | |
echo term_description(); | |
} | |
} |
NewerOlder