View thumbnail-carousel.bxslider.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
<div class="slideshow"> | |
<ul class="bxslider"> | |
{% for image in images %} | |
<li><img src="{{image.url}}" alt=""></li> | |
{% endfor %} | |
</ul> | |
<div class="gallery-thumbs-container"> | |
<ul id="gallery-thumbs" class="gallery-thumbs-list"> | |
{% for image in images %} | |
<li class="thumb-item"> |
View wordpress_search_visitor_ip_block.php
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
// Get user IP in WordPress | |
function get_the_user_ip() { | |
if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { | |
//check ip from share internet | |
$ip = $_SERVER['HTTP_CLIENT_IP']; | |
} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { | |
//to check ip is pass from proxy | |
$ip = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
} else { | |
$ip = $_SERVER['REMOTE_ADDR']; |
View momoth_redirect_attachment_page.php
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 momoth_redirect_attachment_page() { | |
if ( is_attachment() ) { | |
global $post; | |
if ( $post && $post->post_parent ) { | |
wp_redirect( esc_url( get_permalink( $post->post_parent ) ), 301 ); | |
exit; | |
} else { | |
wp_redirect( esc_url( home_url( '/' ) ), 301 ); | |
exit; | |
} |
View youtube_subscriptions.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
<script src="https://apis.google.com/js/platform.js"></script> | |
<div class="g-ytsubscribe" data-channelid="UCD37i3UdHYc9MJ1MnuQ6n2Q" data-layout="full" data-count="default"></div> |
View wordpress_mobile_redirect_to_mobile_page.php
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 | |
/** | |
* Insert the header.php file. <head><head> | |
*/ | |
global $post; | |
$postSlug = $post->post_name; // Get current page slug | |
// Mobile home page control |
View hasn't_thumbnail_post_list.php
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 | |
// Query args. | |
$args = array( | |
'post_type' => 'post', | |
'posts_per_page' => -1, | |
); | |
$query = new WP_Query( $args ); |
View EnBuyukAskerBizimAsker.php
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 | |
/** | |
* | |
* @author Mennan KÖSE | |
* @package Türkiye Cumhuriyeti | |
* @version 2015/4 | |
*/ | |
/** |
View wordpress_custom_category_listing.php
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
<style> | |
.clear{ | |
clear: both; | |
} | |
.more-link{ | |
font-weight: bold; | |
} | |
.entry-category-list{ | |
margin-left: 80px; | |
width: 400px; |
View wordpress_phpmyadmin_collations_problem.sql
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
Problem; | |
WordPress database error: [Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='] | |
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id LEFT JOIN wp_icl_translations icl_t ON icl_t.element_id = tt.term_taxonomy_id AND icl_t.element_type = CONCAT('tax_', tt.taxonomy) WHERE tt.taxonomy IN ('portfolio-category') AND ( ( icl_t.element_type IN ('tax_portfolio-category') AND icl_t.language_code = 'tr' ) OR icl_t.element_type NOT IN ('tax_portfolio-category') OR icl_t.element_type IS NULL ) ORDER BY t.term_order ASC | |
WordPress database error: [Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='] | |
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id LEFT JOIN wp_icl_translations icl_t ON icl_t.element_id = tt.term_taxonomy_id AND icl_t.element_type = CONCAT('tax_', tt.taxonomy) WHERE tt.taxonomy IN ('category') AND ( ( icl_t.elem |
View listing_by_category.php
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 | |
// Category args. | |
$args = array( | |
'type' => 'post', | |
'child_of' => 0, | |
'parent' => '', | |
'orderby' => 'name', | |
'order' => 'ASC', | |
'hide_empty' => 1, |
NewerOlder