vaflex
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Full country list as drop-down menuThanks, I knew someone must have done the hard work before!
Forum: Fixing WordPress
In reply to: Site won’t display suddenly, can access DashboardThanks for the replies, sorry I didn’t get back here right away.
It turns out that somehow the main index.php (in the main WP directory, the one that tells the theme to load) had suddenly gone blank. There was nothing in it at all. I didn’t touch it so I’m not sure how it happened. I hadn’t upgraded WP any time immediately prior to the issue so I have no idea what caused it.
Forum: Themes and Templates
In reply to: Wynton ThemeYou have to change each bit with CSS. The theme author says on his site that it’s not an ‘out of the box’ theme.
Forum: Fixing WordPress
In reply to: Using query to bring up PagesMichael, thanks, you are being amazingly helpful. This works in bringing it up as a list but the idea of this page template is to bring it up in a certain type of display. You can see how it’s supposed to look here (the group of posts with square pics at the bottom of the page).
In case it helps, here is the full page code (I have deliberately commented out some of the bits I don’t want to use):
<?php /* Template Name: Section Page */ ?> <?php get_header(); ?> <div id="section-content"> <div id="section-teaser"> <?php // "Section teaser" module begins query_posts('showposts=1&page_id=698'); ?> <?php while (have_posts()) : the_post(); ?> <!-- <small class="commentmetadata"> <?php _e('By','wyntonmagazine');?> <?php the_author_posts_link('namefl'); ?> | <?php the_time(__ ('F jS, Y', 'wyntonmagazine'));?> | <?php _e('Category:','wyntonmagazine');?> <?php the_category(', ');?> | <?php comments_popup_link(__ ('No Comments »', 'wyntonmagazine'), __ ('1 Comment »', 'wyntonmagazine'), __ngettext ('% comment', '% comments', get_comments_number (),'wyntonmagazine')); ?> <?php edit_post_link('Edit', ' | ', ' | '); ?> --> </small> <a href="<?php the_permalink() ?>" rel="bookmark" class="section-title"> <?php // this is where title of the article gets printed the_title(); ?> </a><br /> <?php // this grabs the image filename $values = get_post_custom_values("section-teaser-image"); // this checks to see if an image file exists if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img class="left" src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/'; $values = get_post_custom_values("section-teaser-image"); echo $values[0]; ?>" alt="image" /></a> <?php } ?> <?php the_excerpt(); ?> <!-- <div class="section-read-on"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php _e('[ See More... ]','wyntonmagazine');?></a> </div> --> <?php endwhile; ?> </div> <div id="section-articlelist"> <?php // "Section headlines" module begins query_posts('showpages=8&page_id=486,493,495,498,500,502,477,504&offset=1&post_type=page'); ?> <?php while (have_posts()) : the_post(); ?> <?php // this grabs the image filename $values = get_post_custom_values("section-category-image"); // this checks to see if an image file exists if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img class="left" src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/'; $values = get_post_custom_values("section-category-image"); echo $values[0]; ?>" alt="image" /></a> <?php } ?> <!-- <small class="commentmetadata"> <?php _e('By','wyntonmagazine');?> <?php the_author_posts_link('namefl'); ?> | <?php the_time(__ ('F jS, Y', 'wyntonmagazine'));?> | <?php _e('Category:','wyntonmagazine');?> <?php the_category(', ');?> | <?php comments_popup_link(__ ('No Comments »', 'wyntonmagazine'), __ ('1 Comment »', 'wyntonmagazine'), __ngettext ('% comment', '% comments', get_comments_number (),'wyntonmagazine')); ?> <?php edit_post_link('Edit', ' | ', ' | '); ?> </small> --> <a href="<?php the_permalink() ?>" rel="bookmark" class="section-subtitle"> <?php // this is where title of the article gets printed the_title(); ?> </a><br /> <div class="section-p"><?php the_excerpt(); ?></div> <?php endwhile; ?> </div> </div> <?php get_sidebar(); ?> <div class="clear"></div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Using query to bring up PagesThanks Michael, I’ve tried it a few different ways without any effect. Does it matter what order the arguments are in?
I now have:
<?php // "Section headlines" module begins query_posts('showpages=8&page_id=486,493,495,498,500,502,477,504&offset=1&post_type=page'); ?>
with the same issue. I can’t work out why it’s not working.