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 | |
function tmf_remove_slug( $post_link, $post, $leavename ) { | |
if ( 'practice-area' != $post->post_type || 'publish' != $post->post_status ) { | |
return $post_link; | |
} | |
$post_link = str_replace( '/' . $post->post_type . '/', '/', $post_link ); |
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 | |
function tmf_remove_slug( $post_link, $post, $leavename ) { | |
if ( 'practice-area' != $post->post_type || 'publish' != $post->post_status ) { | |
return $post_link; | |
} | |
$post_link = str_replace( '/' . $post->post_type . '/', '/', $post_link ); |
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
(function ($) { | |
"use strict"; | |
jQuery(document).ready(function ($) { | |
function adjustIframes() { | |
$('iframe').each(function() { | |
var $this = $(this), |
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
//Use If else Condition | |
<ul> | |
<?php if (get_adjacent_post(false, '', true)): // if there are older posts ?> | |
<li class="prev"><?php previous_post_link('%link', '« Previous post', TRUE); ?></li> | |
<?php endif; ?> | |
<?php if (get_adjacent_post(false, '', false)): // if there are newer posts ?> | |
<li class="next"><?php next_post_link('%link', 'Next post »', TRUE); ?></li> | |
<?php endif; ?> | |
</ul> |
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
#A File Icon | |
#AdvacedNewFile | |
#Agila Theme | |
#All Autocomplete | |
#AutoFileName | |
#BracketHighlighter | |
#Emmet | |
#Jquery |
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
1# Active Unyson Without plugin | |
<?php | |
include_once ('framework/bootstrap.php'); | |
?> | |
2# Diable Unyson Others Extensions | |
\framework\core\components\extensions\manager(available-extensions.php) | |
<?php if ( ! defined( 'FW' ) ) { | |
die( 'Forbidden' ); | |
} |
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 | |
global $paged; | |
$posts_per_page = 9; | |
$settings = array( | |
'showposts' => $posts_per_page, | |
'post_type' => 'portfolio', | |
'orderby' => 'menu_order', | |
'order' => 'ASC', | |
'paged' => $paged) | |
); |
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 | |
function portfolios_shortcode($atts){ | |
extract( shortcode_atts( array( | |
'expand' => '', | |
), $atts) ); | |
global $paged; | |
$posts_per_page = 6; | |
$settings = array( |
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
function my_theme_custom_post_taxonomy() { | |
register_taxonomy( | |
'myname_cat', 'postname', array( | |
'hierarchical' => true, | |
'label' => 'Categories', | |
'query_var' => true, | |
'show_admin_column' => true, | |
'rewrite' => array( | |
'slug' => 'my-category', | |
'with_front' => true |
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 | |
/** | |
* Social Icons Widget | |
* | |
* @description: A simple widget to display icons from your social profiles. | |
* @package HelpingHands | |
* @author Skat | |
* @copyright 2015, Skat Design | |
* @link http://www.skat.tf | |
* @since HelpingHands 1.0 |
NewerOlder