Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter silvi545

    (@silvi545)

    Thank you very much but it did not work. It’s probably because I use it wrong. I guess I will just find the way around it and will wait for new version ??

    Thanks again.

    Thread Starter silvi545

    (@silvi545)

    The twitter widget is actual code within the template, I just can’t understand why same template works fine on static pages but not on blog. I am new to wordpress, maybe there are special settings for blog pages. It drives me mad to be honnest.

    Thread Starter silvi545

    (@silvi545)

    It seems it only does not work in blog (news) page. Everything seems fine in static pages.

    Thread Starter silvi545

    (@silvi545)

    By the way, the page I need to add content is NEWS.

    Thread Starter silvi545

    (@silvi545)

    Yes, it is the newest version of wordpress. Tried to disable HTTP Requests – still the same. Also I’ve checked with already published page as that was what I needed in the first place. I wanted to add some content where was empty before. Editor is gone. Funny enough I tried edit pages where there was content in the second block before, and thre were no problems at all.

    If it’s any help the link to website is : https://www.designstest.co.uk/ all pages are based on reallt simple index.php
    Code for it:

    <?php define('WP_USE_THEMES', false); get_header(); ?>
    <aside id="column1">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    <p><?php the_block('Sidebar quote'); ?></p>
    
    <?php endwhile; else: ?>
    <p><?php _e('Not here'); ?>
    <?php endif; ?>
    </p>
    </aside>
    
                <article class="column2">
                <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    			<?php if ( is_front_page() ) { ?>
    	<h1 style="display: none; height= 0px;"><?php the_title(); ?></h1>
    
    <?php } else { ?>
    	<h1><?php the_title(); ?></h1>
    <?php } ?>
     <p><?php the_content('Custom text to go here'); ?></p>
                 <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?><?php endif; ?>
    <?php /* Bottom post navigation */ ?>
    <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ( $total_pages > 1 ) { ?>
                    <div id="nav-below" class="navigation">
                        <div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&lsaquo;&lsaquo;</span> Older posts', 'SRPrint' )) ?></div>
                        <div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rsaquo;&rsaquo;</span>', 'SRPrint' )) ?></div>
                    </div><!-- #nav-below -->
    <?php } ?>
    
    </p>
                </article>
    
                <div class="clear"></div>
                <?php get_footer(); ?>

    Thank you for your help.

    Thread Starter silvi545

    (@silvi545)

    P.S. Everything seems to be fine on previously created pages.

Viewing 6 replies - 1 through 6 (of 6 total)