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
| // Register Custom Post Type | |
| function slider() { | |
| $labels = array( | |
| 'name' => _x( 'Post Types', 'Post Type General Name', 'Post Types' ), | |
| 'singular_name' => _x( 'Post Type', 'Post Type Singular Name', 'Post Types' ), | |
| 'menu_name' => __( 'Post Types', 'Post Types' ), | |
| 'name_admin_bar' => __( 'Post Type', 'Post Types' ), | |
| 'archives' => __( 'Item Archives', 'Post Types' ), | |
| 'parent_item_colon' => __( 'Parent Item:', 'Post Types' ), | |
| 'all_items' => __( 'All Items', 'Post Types' ), |
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 | |
| $args=array('post_type' => 'service','posts_per_page'=>6,'order' => 'ASC',) ; | |
| $the_qyery= new WP_Query($args); | |
| if ($the_qyery->have_posts()) : | |
| while ( $the_qyery->have_posts() ) : $the_qyery->the_post();?> | |
| <?php echo get_template_directory_uri(); ?>/ | |
| <?php echo get_home_url(); ?>/ | |
| <?php echo site_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
| =============== ACF activation keys ============================================================= | |
| ACF activation keys -> b3JkZXJfaWQ9OTg5NzN8dHlwZT1kZXZlbG9wZXJ8ZGF0ZT0yMDE3LTAyLTA2IDEwOjUwOjAw |
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
| ============================== Call Widget ====================================================== | |
| <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?> | |
| <?php dynamic_sidebar( 'sidebar-2' ); ?> | |
| <?php endif; ?> |
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
| =================== CPT Images file call ======================================================== | |
| <div class="cs-media"> | |
| <?php | |
| $image_src = ''; | |
| $image = get_post_meta( $post->ID, 'image_name', true ); | |
| $image_src = wp_get_attachment_url( $image ); | |
| ?> | |
| <figure><img src="<?php echo $image_src; ?>"></figure> | |
| </div> |
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
| =========================== Cart icon =================== | |
| <?php if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
| $count = WC()->cart->cart_contents_count; | |
| ?><a class="cart-contents" href="<?php echo WC()->cart->get_cart_url(); ?>" title="<?php _e( 'View your shopping cart' ); ?>"><?php | |
| if ( $count > 0 ) { | |
| ?> | |
| <span class="cart-contents-count"><?php echo esc_html( $count ); ?></span> | |
| <?php | |
| } |
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
| ================================================= Post Call Via Categories ============================= | |
| <?php | |
| $args=array('post_type' => 'post') ; | |
| $the_qyery= new WP_Query( array( 'category_name' => 'comments-blog') ); | |
| if ($the_qyery->have_posts()) : | |
| while ( $the_qyery->have_posts() ) : $the_qyery->the_post();?> | |
| <?php the_permalink() ; ?> | |
| <?php the_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
| ====================================== Redux Frame Work ==================================================== | |
| //Redux Frame Work | |
| if ( !class_exists( 'ReduxFramework' ) && file_exists( dirname( __FILE__ ) . '/theme-options/ReduxCore/framework.php' ) ) { | |
| require_once( dirname( __FILE__ ) . '/theme-options/ReduxCore/framework.php' ); | |
| } | |
| if ( !isset( $sante ) && file_exists( dirname( __FILE__ ) . '/theme-options/core/theme_option.php' ) ) { | |
| require_once( dirname( __FILE__ ) . '/theme-options/core/theme_option.php' ); | |
| } | |
| ============================================================================================= |
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
| ================page.php rename by woocommerce.php============ | |
| <?php | |
| if ( have_posts() ) : | |
| woocommerce_content(); | |
| endif; | |
| ?> |
OlderNewer