Typografitti
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] custom flags disappearHave the same problem and it’s frustrating. Have you found any solution?
Forum: Themes and Templates
In reply to: Problems with pagination in category.phpSolved with the right configuration in WP/admin/preferences/read. Shown post should not get lower than the amount in the code. Fix that and it works:)
Forum: Fixing WordPress
In reply to: Make own blog page template with paginationThanks for your support in this issue, that has coasted a lot of frustation and made my hair turn grey . I´ve tried with your suggestion, but the links didn´t work anyway.
But this solved the problem for me
http://digwp.com/2013/01/display-blog-posts-on-page-with-navigation/Forum: Fixing WordPress
In reply to: Make own blog page template with paginationI´ve now tried a different way by a WP_query. But if you say its not possible with templates I´ve to think a different way. I´ve to add that I have not chosen any page for the blog in the setting of reading screen. If it matters?
<?php /* Template Name: Blog3 */ ?> <?php $args = array(''); $pages = get_pages($args);?> <?php // The Query $query1 = new WP_Query( $args ); ?> <?php // The Loop while ( $query1->have_posts() ) { $query1->the_post(); echo '<h1>' . get_the_title() . '</h1>'; echo '<p>' . the_excerpt() . '</p>'; } ?> <?php // get_next_posts_link() usage with max_num_pages echo get_next_posts_link( 'Older Entries', $the_query->max_num_pages ); echo get_previous_posts_link( 'Newer Entries' ); ?> <?php /* Restore original Post Data * NB: Because we are using new WP_Query we aren't stomping on the * original $wp_query and it does not need to be reset. */ wp_reset_postdata(); wp_reset_query(); ?>Forum: Fixing WordPress
In reply to: Can´t see and place images from media liberyI´ve solved it after some research.
Just take away all php tags for each function in wp-content/yourtheme/function.php and just have a starter php and end php.
Hurray hope it will help someone, it saved me a lot of brainpower.
/peter