Marijn
Forum Replies Created
-
Forum: Themes and Templates
In reply to: The three most recent posts in different div's, how?Sorry for the confusion and thanks for the quick fix!
I did the things you sad, but it won’t work. I still get the error. I don’t know or the following image will help, although maybe it does.
https://cl.ly/image/1u16131v0h0iForum: Themes and Templates
In reply to: The three most recent posts in different div's, how?Beautiful! Yet, it doesn’t work right now.
I took the orginal page code (I use the _S theme):
<?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package Jong Gooiland * @since Jong Gooiland 1.0 */ get_header(); ?> <div id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content .site-content --> </div><!-- #primary .content-area --> <?php get_sidebar(); ?> <?php get_footer(); ?>
And made a page template based on the code above:
<?php /* Template Name: Voorpagina */ get_header(); ?> <div id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <?php $args = array( 'posts_per_page' => 3 ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <div <?php post_class();?> id="post-<?php the_ID();?>"> <ul> <?php <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <li><?php $excerpt = get_the_excerpt( $deprecated ) ?></li> </ul> </div> <?php endforeach; ?> </div><!-- #content .site-content --> </div><!-- #primary .content-area --> <?php get_footer(); ?>
The page where the template is activated won’t work. Do you see the problem?
I appreciate your help very much!
Forum: Themes and Templates
In reply to: The three most recent posts in different div's, how?Thanks Esmi, although if I paste this piece of code in the
<div id="firstfield">
, will the other two post go to the<div id="secondfield">
and<div id="thirdfield">
?Forum: Themes and Templates
In reply to: Having Trouble with Header image (logo) in oxygen themDo you insert the image on full size, or as a tumbnail? This image will help (not mine, from the internet): https://www.adventuresinwebdesign.com/wp-content/uploads/2011/08/insert_image_wordpress-e1314070069520.jpg
Forum: Plugins
In reply to: Contact form opening by linkSomebody?
Thanks, that is indeed a nice idea ??
I found the solution!
Go to the .css and delete the this seletion: border-top:1px solid #ccc; border-bottom: 1px solid #ccc;
Forum: Plugins
In reply to: [Digg Digg] (Plugin: Digg Digg) Like button doesn't workI have the same here.
On the theme Complete it doesn’t work
Forum: Themes and Templates
In reply to: How do I remove something from footerThat doesn’t work. I don’t see the <!– Evil Footer Devil FOUND –>, only the …BEGONE
Forum: Your WordPress
In reply to: Bragging on my WP site; krazyforcoupons.comWhy so much ads?
Forum: Your WordPress
In reply to: My newest wordpress siteWow, do you need money?