Works pretty well in capturing the full URL when using this in a search (like in Sublime Text 2).
(https?|ftps?)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/?
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
/* =BEGIN: Check If Page Is Child | |
Source: http://bavotasan.com/2011/is_child-conditional-function-for-wordpress/ | |
---------------------------------------------------------------------------------------------------- */ | |
function is_child( $page_id_or_slug ) { // $page_id_or_slug = The ID of the page we're looking for pages underneath | |
global $post; // load details about this page | |
if ( !is_numeric( $page_id_or_slug ) ) { // Used this code to change a slug to an ID, but had to change is_int to is_numeric for it to work. | |
$page = get_page_by_path( $page_id_or_slug ); | |
$page_id_or_slug = $page->ID; | |
} |
source: How to Optimize Your Content for Google's Featured Snippet Box
Uncover what a Featured Snippet is and what steps you can take to help your business earn more visibility on a search engine results page.
Here are the takeaways…
- Backlinks matter much less for ranking in the Featured Snippet when you already rank on page one.
- There should be an area on the page where the search query appears in a header (
h2
,h3
,h4
, etc.).
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 | |
/* | |
Plugin Name: Disable XML-RPC + Pingback | |
Plugin URI: http://www.philerb.com/wp-plugins/ | |
Description: This plugin disables XML-RPC API + pingbacks in WordPress 3.5+, which is enabled by default. 2 WP plugins were combined together to cover all bases. | |
Version: 1.0.0 | |
Author: Eric Rasch | |
Author URI: http://ericrasch.com | |
License: GPLv2 | |
*/ |
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
/** | |
* Horizontal Type Line Behind Text | |
* Inspired by this discussion @ CSS-Tricks: http://css-tricks.com/forums/discussion/comment/51357#Comment_51357 | |
* Available on jsFiddle: http://jsfiddle.net/ericrasch/jAXXA/ | |
* Available on Dabblet: http://dabblet.com/gist/2045198 | |
* Available on GitHub Gist: https://gist.github.com/2045198 | |
*/ | |
h2 { | |
font: 33px sans-serif; |
These are some of the tools I leverage to making better wesites, more efficiently:
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 | |
/* =BEGIN: Add Class to first Paragraph in WordPress the_content(); | |
Source: http://webdevbits.com/wordpress/add-class-to-first-paragraph-in-wordpress-the_content/ | |
---------------------------------------------------------------------------------------------------- */ | |
function first_paragraph($content){ | |
// Testing to see if the content is a Page or Custom Post Type of school, if so, display the text normally (without the class = intro). | |
if ( is_page() || ('school' == get_post_type() ) ) { | |
return preg_replace('/<p([^>]+)?>/', '<p$1>', $content, 1); | |
} else { | |
return preg_replace('/<p([^>]+)?>/', '<p$1 class="intro">', $content, 1); |
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 DATABASE 'my_wp_database' CHARACTER SET utf8; | |
ALTER TABLE 'wp_comments' CHARACTER SET utf8; | |
alter table 'wp_comments' change comment_content comment_content LONGTEXT CHARACTER SET utf8; | |
alter table 'wp_comments' change comment_author comment_author LONGTEXT CHARACTER SET utf8; | |
update `wp_posts` set `post_content` = replace(`post_content` ,'á','á'); | |
update `wp_posts` set `post_content` = replace(`post_content` ,'é','é'); | |
update `wp_posts` set `post_content` = replace(`post_content` ,'í©','é'); | |
update `wp_posts` set `post_content` = replace(`post_content` ,'ó','ó'); |
https://ahrefs.com/blog/increase-website-traffic/ (h/t via Stephanie S: https://higheredu.slack.com/archives/marketing/p1463773458000002)
Improve content and keywords to gain traffic
- Dig up Organic Keywords from Ahrefs Site Explorer
- Evaluate the competition using Google SERPs
$ cd {{project-directory}}
$ rm -rf .git
$ git init
$ git add .
$ git commit -m 'Initial commit'
$ git remote add origin {{url}}
$ git push --force