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 | |
| /* | |
| Template Name: Frontend Edit Profile | |
| */ | |
| get_header(); | |
| if ( is_user_logged_in() ) : { | |
| $user_ID = get_current_user_id(); | |
| $user_info = get_userdata($user_ID); |
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
| /* | |
| $tUp: Beğenenler | |
| $tDown: Beğenmeyenler | |
| $tTotal: Beğenen ve Beğenmeyenler Toplamı | |
| $percentageCalculate: Beğenenlerin yüzde hesaplaması. Ör: % 75 Kişi Beğenmiş | |
| */ | |
| $tUp = 50; | |
| $tDown = 90; | |
| $tTotal= $tUp + $tDown; | |
| $percentageCalculate = ($tUp*100) / $tTotal; |
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
| // Kod ?>'ın hemen üstüne eklenecek. | |
| function foo_modify_query_order( $query ) { | |
| if ( $query->is_category() && $query->is_main_query() ) { | |
| $query->set( 'orderby', 'title' ); | |
| $query->set( 'order', 'ASC' ); | |
| } | |
| } | |
| add_action( 'pre_get_posts', 'foo_modify_query_order' ); |
OlderNewer