• 20-01-2018, 20:40:29
    #1
    Wordpress anasayfada makalenin tamamını görüntülemek istiyorum. Bir türlü yapamadım nasıl yaparım bunu? Şu an sadece başlık ve öne çıkan görsel var. içeriğin tamamının anasayfada çıkmasını istiyorum.
  • 20-01-2018, 22:35:58
    #2
    index.php 'de (temanizda home.php, homepage.php, frontpage.php vs. gibi ozel bir anasayfa temasi varsa onda arayin) the_excerpt bulup the_content ile degistirin
  • 21-01-2018, 02:02:02
    #3
    Üyeliği durduruldu
    haruntt adlı üyeden alıntı: mesajı görüntüle
    Wordpress anasayfada makalenin tamamını görüntülemek istiyorum. Bir türlü yapamadım nasıl yaparım bunu? Şu an sadece başlık ve öne çıkan görsel var. içeriğin tamamının anasayfada çıkmasını istiyorum.
    index.php kodlarınızı eklerseniz yardımcı olalım.
  • 21-01-2018, 13:12:23
    #4
    Uhud adlı üyeden alıntı: mesajı görüntüle
    index.php kodlarınızı eklerseniz yardımcı olalım.
    <?php
    /*  ----------------------------------------------------------------------------
        the blog index template
     */
    
    get_header();
    
    //set the template id, used to get the template specific settings - this was the old home.php template
    $template_id = 'home';
    
    //prepare the loop variables
    global $loop_module_id, $loop_sidebar_position;
    $loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 1); //module 1 is default
    $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
    
    // sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
    $td_sidebar_position = '';
    if($loop_sidebar_position == 'sidebar_left') {
    	$td_sidebar_position = 'td-sidebar-left';
    }
    ?>
    
    <div class="td-main-content-wrap td-container-wrap">
        <div class="td-container td-blog-index <?php echo $td_sidebar_position; ?>">
            <div class="td-crumb-container">
                <?php echo td_page_generator::get_home_breadcrumbs(); ?>
            </div>
            
            <div class="td-pb-row">
                <?php
                switch ($loop_sidebar_position) {
                    default:
                        ?>
                            <div class="td-pb-span8 td-main-content">
                                <div class="td-ss-main-content">
                                    <?php
                                        locate_template('loop.php', true);
                                        echo td_page_generator::get_pagination();
                                    ?>
                                </div>
                            </div>
                            <div class="td-pb-span4 td-main-sidebar">
                                <div class="td-ss-main-sidebar">
                                    <?php get_sidebar(); ?>
                                </div>
                            </div>
                        <?php
                        break;
    
                    case 'sidebar_left':
                        ?>
                        <div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content">
                            <div class="td-ss-main-content">
                                <?php
                                    locate_template('loop.php', true);
                                    echo td_page_generator::get_pagination();
                                ?>
                            </div>
                        </div>
    	                <div class="td-pb-span4 td-main-sidebar">
    		                <div class="td-ss-main-sidebar">
    			                <?php get_sidebar(); ?>
    		                </div>
    	                </div>
                        <?php
                        break;
    
                    case 'no_sidebar':
                        td_global::$load_featured_img_from_template = 'full';
    
                        ?>
                        <div class="td-pb-span12 td-main-content">
                            <div class="td-ss-main-content">
                                <?php
                                    locate_template('loop.php', true);
                                    echo td_page_generator::get_pagination();
                                ?>
                            </div>
                        </div>
                        <?php
                        break;
                }
                ?>
            </div> <!-- /.td-pb-row -->
        </div> <!-- /.td-container -->
    </div> <!-- /.td-main-content-wrap -->
    
    <?php
    get_footer();
  • 21-01-2018, 13:16:57
    #5
    Üyeliği durduruldu
    haruntt adlı üyeden alıntı: mesajı görüntüle
    <?php
    /*  ----------------------------------------------------------------------------
        the blog index template
     */
    
    get_header();
    
    //set the template id, used to get the template specific settings - this was the old home.php template
    $template_id = 'home';
    
    //prepare the loop variables
    global $loop_module_id, $loop_sidebar_position;
    $loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 1); //module 1 is default
    $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
    
    // sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
    $td_sidebar_position = '';
    if($loop_sidebar_position == 'sidebar_left') {
    	$td_sidebar_position = 'td-sidebar-left';
    }
    ?>
    
    <div class="td-main-content-wrap td-container-wrap">
        <div class="td-container td-blog-index <?php echo $td_sidebar_position; ?>">
            <div class="td-crumb-container">
                <?php echo td_page_generator::get_home_breadcrumbs(); ?>
            </div>
            
            <div class="td-pb-row">
                <?php
                switch ($loop_sidebar_position) {
                    default:
                        ?>
                            <div class="td-pb-span8 td-main-content">
                                <div class="td-ss-main-content">
                                    <?php
                                        locate_template('loop.php', true);
                                        echo td_page_generator::get_pagination();
                                    ?>
                                </div>
                            </div>
                            <div class="td-pb-span4 td-main-sidebar">
                                <div class="td-ss-main-sidebar">
                                    <?php get_sidebar(); ?>
                                </div>
                            </div>
                        <?php
                        break;
    
                    case 'sidebar_left':
                        ?>
                        <div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content">
                            <div class="td-ss-main-content">
                                <?php
                                    locate_template('loop.php', true);
                                    echo td_page_generator::get_pagination();
                                ?>
                            </div>
                        </div>
    	                <div class="td-pb-span4 td-main-sidebar">
    		                <div class="td-ss-main-sidebar">
    			                <?php get_sidebar(); ?>
    		                </div>
    	                </div>
                        <?php
                        break;
    
                    case 'no_sidebar':
                        td_global::$load_featured_img_from_template = 'full';
    
                        ?>
                        <div class="td-pb-span12 td-main-content">
                            <div class="td-ss-main-content">
                                <?php
                                    locate_template('loop.php', true);
                                    echo td_page_generator::get_pagination();
                                ?>
                            </div>
                        </div>
                        <?php
                        break;
                }
                ?>
            </div> <!-- /.td-pb-row -->
        </div> <!-- /.td-container -->
    </div> <!-- /.td-main-content-wrap -->
    
    <?php
    get_footer();
    loop.php paylaşırmısınız?
  • 21-01-2018, 13:30:49
    #6
    <?php
    /**
     * If you are looking for the loop that's handling the single post page (single.php), check out loop-single.php
     **/
    
    
    // $global_flag_to_hide_no_post_to_display - comes from page-category-big-grid.php and is a flag to hide the 'No posts to display' message if on category page there are between 1 and 5  posts
    global $loop_module_id, $loop_sidebar_position, $global_flag_to_hide_no_post_to_display;
    
    ///if we are in wordpress loop; used by quotes in blocks to check if the blocks are displayed in blocks or in loop
    td_global::$is_wordpress_loop = true;
    
    $td_template_layout = new td_template_layout($loop_sidebar_position);
    
    if (empty($loop_module_id)) {  //not sure if we need a default here
        $loop_module_id = 1;
    }
    
    $td_sidebar_position = '';
    if ($loop_sidebar_position == 'no_sidebar'){
        $td_sidebar_position = 'td-module-no-sidebar';
    } else {
        $td_sidebar_position = 'td-module-with-sidebar';
    }
    
    $td_module_class = td_api_module::_helper_get_module_class_from_loop_id($loop_module_id);
    
    
    //disable the grid for some of the modules
    $td_module = td_api_module::get_by_id($td_module_class);
    if ($td_module['uses_columns'] === false) {
        $td_template_layout->disable_output();
    }
    
    
    if (have_posts()) {
        ?>
        <div class="td-modules-container td-module-number<?php echo $loop_module_id; ?> <?php echo $td_sidebar_position; ?>">
            <?php
            while ( have_posts() ) : the_post();
                echo $td_template_layout->layout_open_element();
    
                if ( class_exists( $td_module_class ) ) {
                    $td_mod = new $td_module_class( $post );
                    echo $td_mod->render();
                } else {
                    td_util::error( __FILE__, 'Missing module: ' . $td_module_class );
                }
    
                echo $td_template_layout->layout_close_element();
                $td_template_layout->layout_next();
            endwhile; //end loop
            echo $td_template_layout->close_all_tags();
    
            ?>
        </div>
        <?php
    
    } else {
        /**
         * no posts to display. This function generates the __td('No posts to display').
         * the text can be overwritten by the themplate using the global @see td_global::$custom_no_posts_message
         */
    
        echo td_page_generator::no_posts();
    }
  • 21-01-2018, 14:38:29
    #7
    Üyeliği durduruldu
    haruntt adlı üyeden alıntı: mesajı görüntüle
    <?php
    /**
     * If you are looking for the loop that's handling the single post page (single.php), check out loop-single.php
     **/
    
    
    // $global_flag_to_hide_no_post_to_display - comes from page-category-big-grid.php and is a flag to hide the 'No posts to display' message if on category page there are between 1 and 5  posts
    global $loop_module_id, $loop_sidebar_position, $global_flag_to_hide_no_post_to_display;
    
    ///if we are in wordpress loop; used by quotes in blocks to check if the blocks are displayed in blocks or in loop
    td_global::$is_wordpress_loop = true;
    
    $td_template_layout = new td_template_layout($loop_sidebar_position);
    
    if (empty($loop_module_id)) {  //not sure if we need a default here
        $loop_module_id = 1;
    }
    
    $td_sidebar_position = '';
    if ($loop_sidebar_position == 'no_sidebar'){
        $td_sidebar_position = 'td-module-no-sidebar';
    } else {
        $td_sidebar_position = 'td-module-with-sidebar';
    }
    
    $td_module_class = td_api_module::_helper_get_module_class_from_loop_id($loop_module_id);
    
    
    //disable the grid for some of the modules
    $td_module = td_api_module::get_by_id($td_module_class);
    if ($td_module['uses_columns'] === false) {
        $td_template_layout->disable_output();
    }
    
    
    if (have_posts()) {
        ?>
        <div class="td-modules-container td-module-number<?php echo $loop_module_id; ?> <?php echo $td_sidebar_position; ?>">
            <?php
            while ( have_posts() ) : the_post();
                echo $td_template_layout->layout_open_element();
    
                if ( class_exists( $td_module_class ) ) {
                    $td_mod = new $td_module_class( $post );
                    echo $td_mod->render();
                } else {
                    td_util::error( __FILE__, 'Missing module: ' . $td_module_class );
                }
    
                echo $td_template_layout->layout_close_element();
                $td_template_layout->layout_next();
            endwhile; //end loop
            echo $td_template_layout->close_all_tags();
    
            ?>
        </div>
        <?php
    
    } else {
        /**
         * no posts to display. This function generates the __td('No posts to display').
         * the text can be overwritten by the themplate using the global @see td_global::$custom_no_posts_message
         */
    
        echo td_page_generator::no_posts();
    }
    Skype adresimizi eklermisiniz?
  • 22-01-2018, 11:12:21
    #8
    Var mı yardımcı olabilecek?