TommyHoliday
Forum Replies Created
-
same problem here!
any suggestions?
Forum: Fixing WordPress
In reply to: How do I add posts on a templated page used as home ?wow man! thank you very much for the time to code this!
???hm, is there a way to put this code in functions.php? i don’t want all the code in my page template…
Forum: Fixing WordPress
In reply to: How do I add posts on a templated page used as home ?yes, this i what i tried yet. unfortunately it’s not working with pretty permalinks. and i’m not very familiar with PHP, so i don’t know how i can fix this. do you have an idea?
Forum: Fixing WordPress
In reply to: How do I add posts on a templated page used as home ?whiiiihaaaa!! thank you very much man!! it works just beautifully! perfect! ??
you made my day! ??thanks again!
TommyForum: Fixing WordPress
In reply to: How do I add posts on a templated page used as home ?okay thank you.
the thing is, that i want to make the theme as flexible as possible because i want to give it away for free. the user can then choose from a range of portfolio page templates (Web Design, Graphic Design, Video, etc.) And every time the user have more portfolio items it goes automatically to the index.php template… =/
mhh, the only thing i can do is to take out the pagination function out of the templates i think…
or do you have even another good idea? ??
Forum: Fixing WordPress
In reply to: How do I add posts on a templated page used as home ?well, yes you are right. but this is a wrong behaviour, isn’t it?
it should somehow redirect or add the page_id so that on the paged sites the right template is in use?! when i set portfolio.php as the homepage it should on the paged homepage sites also use portfolio.php and not index.php -.-
Forum: Fixing WordPress
In reply to: How do I add posts on a templated page used as home ?@vtxyzzy, no, i’m very sure the problem is not the way i set up the permalink structure! when i click on the startpage on “older entries” wordpress generates a link like this: https://geikon.thomasveit.com/?paged=2. as you can see, it’s using index.php to display the content like “t31os_” says correctly.
and now just add the page_id from the homepage to the url like so:
https://geikon.thomasveit.com/?page_id=143&paged=2and voila! it works.
Forum: Fixing WordPress
In reply to: How do I add posts on a templated page used as home ?here’s a link to a working demo: https://geikon.thomasveit.com/
As you can see, when you click older entries on the startpage it goes to automatically to the Blog layout site.Here’s a zip with my portfolio.php which is set as homepage. https://geikon.thomasveit.com/wp-content/uploads/2010/02/portfolio.zip
thank you for the help!
Forum: Fixing WordPress
In reply to: How do I add posts on a templated page used as home ?@abelthrone, thank you very much man! you’re the first who had exactly the same problem as i have… but unfortunately nobody has a good solution for it. =/
i would use your solutions, but i give my theme away for free and page_id of the homepage can be way different… so for me it’s still not a solution i can use.
anybody another solution or work around?
thx….
Hello,
It kinda works for me too but I have a specific problem : it doesn’t work with posts that are in the page set as homepage in WP prefs (I have home page that uses a custom template in which I display some posts).As page_id is not set, the next and previous posts link lead to mywebsite.com/?paged=2 and I get a “can’t be found” error message.
Using the same code in another page/template makes links like mywebsite.com/?page_id=54&paged=2 and navigation works.Is this a WP bug ? How can I fix the problem ?
Ohhhh god, i have exactly the same problem!! i just figured it out after 6 hours what the problem is! do you have a fix for it or is it still not working??
Thank you for your reply! ??
Thomas
Forum: Fixing WordPress
In reply to: Page and next_posts_link – Doesn’t work properlyi have exactly the same problem! but your solution is not working for me. =/
this is what i have:
<?php if (have_posts()) : ?> <?php query_posts("category_name=$blog_cat"); ?> <?php while (have_posts()) : the_post(); ?> <div class="postsingle" id="post-<?php the_ID(); ?>"> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1> <p class="postmetadata">by <?php the_author(); ?> on <?php the_time('l, F jS, Y') ?> | <img src="<?php echo get_bloginfo('template_directory'); ?>/images/comments.png" alt="comments"> <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> | <?php the_tags(); ?> </p> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('← Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries →') ?></div> </div> <?php else : ?>
i tryed to replace
'cat' => 4; with
with
'category_name' => $blog_cat
someone an idea?
Forum: Themes and Templates
In reply to: more-tag on templatesahh, sorry my bad! i’ll try this. thank you very much esmi!
Forum: Themes and Templates
In reply to: more-tag on templatesthank you esmi for your fast reply.
i should explain a little bit more… i don’t need the <–more–> tag on single.php but on my created template file.
for my site i used the homepage (index.php) for my portfolio section. only post with category “portfolio” are displayed here. then i created a template named “blog.php” and here should all posts appear. and because this is a template file my <–more–> tag is not working here.
Forum: Themes and Templates
In reply to: BlueBubble – Free Premium WordPress Portfolio Themeok i’ll do that today! thank you
Forum: Themes and Templates
In reply to: BlueBubble – Free Premium WordPress Portfolio Theme@whooami: my theme really needs a installation guide for setting it up. this is why i created these directories.
thats fine — im just letting you know to expect problems (guaranteed) the way youve done it.
Ok yes, thank you! i just hope the folks realize how to install it… and if not, they can ask me ??