BLKDG
This file contains hidden or 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
UPDATE wp_options SET option_value = replace(option_value, 'Existing URL', 'New URL') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET post_content = replace(post_content, 'Existing URL', 'New URL'); | |
UPDATE wp_posts SET guid = REPLACE(guid, 'Existing URL', 'New URL') WHERE guid LIKE 'Existing URL/%'; | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'Existing URL','New URL'); | |
UPDATE wp_usermeta SET meta_value = replace(meta_value, 'Existing URL','New URL'); |
This file contains hidden or 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 | |
$image = get_field('image'); | |
if( !empty($image) ): | |
// vars | |
$url = $image['url']; | |
$title = $image['title']; |
This file contains hidden or 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: Custom Styles | |
Plugin URI: http://www.speckygeek.com | |
Description: Add custom styles in your posts and pages content using TinyMCE WYSIWYG editor. The plugin adds a Styles dropdown menu in the visual post editor. | |
Based on TinyMCE Kit plug-in for WordPress | |
http://plugins.svn.wordpress.org/tinymce-advanced/branches/tinymce-kit/tinymce-kit.php | |
*/ | |
/** | |
* Apply styles to the visual editor |
This file contains hidden or 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 | |
$queryName = new WP_Query( | |
array( | |
'post_type'=>'POST_TYPE_NAME', | |
'posts_per_page'=>'-1', | |
'order'=>'ASC', | |
'orderby' => 'menu_order', | |
'post_status' => 'publish' | |
)); | |
?> |
This file contains hidden or 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 | |
$totalColumns = count(get_sub_field('list_content')); // Total number of list items | |
$rowNumber = get_sub_field('list_columns'); // If you want to set the column number in the back end. If not set it to however many columns you want | |
$break = ceil($totalColumns / $rowNumber); // Rounded up number to add another column | |
$listCount = 0; // List count | |
?> | |
<?php if( have_rows('list_content') ): ?> | |
<ul class="column-<?php echo $rowNumber; ?>"> |
This file contains hidden or 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 | |
/** | |
* Custom Theme functions and definitions. | |
* | |
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
* | |
* @package Custom_Theme | |
*/ | |
/*-------------------------------------------------------------- |
NewerOlder