Skip to content

Instantly share code, notes, and snippets.

=== 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
@pradeepdotco
pradeepdotco / featured-image-link.php
Created May 6, 2020 15:48
Adding Link to the featured Image - Genesis
<?php edit_post_link( $link, $before, $after, $id, $class ); ?>
@pradeepdotco
pradeepdotco / social-media-widget-jetpack.css
Created November 7, 2017 11:30
Social media icons Jetpack widget
.widget_wpcom_social_media_icons_widget .genericon {
font-size: 16px;
}
@pradeepdotco
pradeepdotco / Nginx config
Created August 25, 2017 13:40
Nginx config for HTTP to HTTPS
server {
listen 80;
server_name domain.com www.domain.com;
return 301 https://domain.com$request_uri;
}
@pradeepdotco
pradeepdotco / .htacess file
Created July 16, 2017 17:52
Redirection code from HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@pradeepdotco
pradeepdotco / 404.php
Created June 29, 2017 13:11
2017 WordPress Theme 404 Page
<?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
@pradeepdotco
pradeepdotco / WP-memory-limit.php
Created October 5, 2016 13:27
WP MEMORY LIMIT to 96
define( 'WP_MEMORY_LIMIT', '96M' );
@pradeepdotco
pradeepdotco / fatal-error-memory-wp.php
Created October 5, 2016 13:00
WordPress Memory Fatal Error
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
@pradeepdotco
pradeepdotco / output_category_info-genesis.php
Created August 27, 2016 02:21
Add Title and Description for WordPress category page
// 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();
}
}