frankjkeane
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Posts not appearing – newbieI have just entered this code into page and instead of displaying the post name it is displaying ‘Home’ a link to the homepage. The date and who posted it are displayed, the content is not. It is also saying the date is 25 June when all posts are created today.
Is this a DB problem?Thank you.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- Display the Title as a link to the Post's permalink. --> <h2><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. --> <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small> <!-- Display the Post's Content in a div box. --> <div class="entry"> <?php the_content(); ?> </div> <!-- Display a comma separated list of the Post's Categories. --> <p class="postmetadata">Posted in <?php the_category(', '); ?></p> </div> <!-- closes the first div box --> <!-- Stop The Loop (but note the "else:" - see next line). --> <?php endwhile; else: ?> <!-- The very first "if" tested to see if there were any Posts to --> <!-- display. This "else" part tells what do if there weren't any. --> <p>Sorry, no posts matched your criteria.</p> <!-- REALLY stop The Loop. --> <?php endif; ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. The above code has now been permanently mangled by the forum’s parser.]
Forum: Themes and Templates
In reply to: Posts not appearing – newbieThanks Esmi, I read that article and had thought that what it instructed is what i have done, yet posts dont show up. There is another article on the loop in codex which mentions putting get_header at the top of the page but i have not yet sliced my index into template pages and just have a normal header, is there something in a default header file that installs with wp?
Should i just be able to have an index file a css file and enter the have_posts code to display a blog entry or am i missing something?
Many thanks
Frank
Forum: Themes and Templates
In reply to: Categories separated into different pages.Ah right, you can set up php template files. Nice one, i’ll give it a go!
Very Helpful, thank you!
Forum: Themes and Templates
In reply to: Categories separated into different pages.The link just appeared on your reply, just viewed site, looks like just what im looking for!
But are these pages that can have different templates? (different headers on each one)
How would i use the functionality from 2012 and put it into my theme, i am building from scratch.
Thank you.
Frank
Forum: Themes and Templates
In reply to: Categories separated into different pages.Thanks David,
so with the custom menu, do the categories listed in the menu bring to pages with just posts that are in that category? Can you set these pages up with different page templates?
Many thanks
Frank
Forum: Fixing WordPress
In reply to: Stoppng the homepage from being listed when using wp_list_pagesgreen, thanks
Forum: Fixing WordPress
In reply to: Posts page showing wrong template.You mean the file or template? I think i tried that before, then the home page is not needed, just use index and have that set to home template?
thanks for reply
Forum: Fixing WordPress
In reply to: Newbie, how to create link to blog page from home page?Why is the default template copying the home.php’s template? I’ve put in the page.php file thinking thats what i was missing but its still using the home one!!? Is it because wp reads the home page as the index therefore the default, why is page.php not overriding that?
Forum: Fixing WordPress
In reply to: Newbie, how to create link to blog page from home page?Thanks esmi. Yeah that did the job! all working except now the default template for the blog is stuck on the homepage template. I’ve left the blog template to default and made the homepage set to template ‘home’. when i go to blog its got the home template, must be from the install? i put up a index.php file with the same code as the tempalte i want the blog to be but didn’t work. how can i change the default template to what i want? When i point to the blog the url is bingbangbosh.ie/index.php/blog/
Many thanks
Frank
Forum: Fixing WordPress
In reply to: Newbie, how to create link to blog page from home page?Thanks esmi. Ok so i can use a wp page to contain a blog? just put the loop in? so normal links urls don’t work in wp?
Cheers
FrankForum: Fixing WordPress
In reply to: Mailing List Plugin.Thanks Shane will have a look.
Forum: Plugins
In reply to: [Plugin: Events Calendar] Problem: Overwrites images of other pluginsNice one ThorHammer, NEVER would have found that! Strange little bug.
Forum: Fixing WordPress
In reply to: certain items in loop not appearing NEWBIE!yeah that got the “by” but author name still not showing. could it be anything to do with being hosted on mamp server?
Forum: Fixing WordPress
In reply to: certain items in loop not appearing NEWBIE!nice one, thanks vtx, I’ll give it a go.
Forum: Fixing WordPress
In reply to: comments-link-popup not workingHi, yes thats what i meant sorry, its in the themes folder. do any other related files need to be there? i have comments.php and comments-popup.php.
how does this work? is it just the <?comments-popup-link(“….. line that calls it and if it’s in the themes folder it should appear? what other conditions are there for this to work?
thanks a lot
Frank