johnnyjp
Forum Replies Created
-
Forum: Plugins
In reply to: Deep Last.fm integration (API querying)anybodys got any ideas? 🙂
Forum: Networking WordPress
In reply to: how to set up blogs with different permissions / configurationcould you tell me what possible threats id be exposing my wordpress installation to if id use this plugin?
Forum: Plugins
In reply to: [Plugin: All in One Video Pack] Beware of being ripped-off!Sorry, it’s 150 GB per MONTH not per year!
Forum: Fixing WordPress
In reply to: 301 redirect for different permalinks structure?
Forum: Fixing WordPress
In reply to: 301 redirect for different permalinks structureoh, right now i use
redirect 301 /blog/ http://www.mydomain.com/but i guess that doesnt cover the permalink structure :/
Forum: Fixing WordPress
In reply to: How to link comments link to comments only page?okay so you are mega lazy and thats just sad.
but
ive come with a solution, but although it works for me right now, it’s not very reliable.
so to have my posts organized in following way:
list posts > go to and read post > click on comments and go to post title only and comments template
ive created an extra category called “comments”, then i obviously applied it to all the posts that i want to use separate comments template with and i’ve added this in my
category.phptemplate file:<?php foreach((get_the_category()) as $category) { if($category->cat_name != 'comments'){ $link = get_category_link($category); echo '<a href="' . $link . '">' . $category->cat_name . '</a> '; } else{ $permalink_array = explode('/', get_permalink()); $permalink_elements = count($permalink_array); $post_url = $permalink_elements - 1; $link_to_comments = $permalink_array[$post_url]; } } ?> <?php edit_post_link('Edit', '', ' | '); ?> <a href="<?php echo get_category_link($category); ?>/<?php echo $link_to_comments; ?>"><?php comments_number('No comments', 'One comment', '% comments' );?></a>so right now i have two permalinks to one post, one is the regular one:
http://mysite.com/news/economics/post_title.htmland the second one that i use for displaying comments is:
http://mysite.com/comments/post_title.htmland ive put this in my
single.phpfile:<?php if (in_category($comments_category)) { // post-title and comments only template } else{ // single post template that shows post title and content and a link to comments } ?>as i mentioned its not the ebst way to do it because i have to make sure that i posted this post in “comments” category as well, which is a bit annoying but since no one wanted to help me out thats what ive come up with
Forum: Fixing WordPress
In reply to: How to link comments link to comments only page?people! help me!
Forum: Fixing WordPress
In reply to: How to link comments link to comments only page?guys?
Forum: Fixing WordPress
In reply to: Need readmore contens with imageyoull have to enable post thumbnails and include them in your theme
http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/
Forum: Fixing WordPress
In reply to: How to link comments link to comments only page?oh, come on…!
Forum: Fixing WordPress
In reply to: How to link comments link to comments only page?anyone?
Forum: Fixing WordPress
In reply to: Looking for Desktop Publishing Tooltheres no such thing
i dont even know what does have wordpress in common with DTP
check out adobe indesign or quark xpress
Forum: Fixing WordPress
In reply to: How to link comments link to comments only page?guys?
Forum: Fixing WordPress
In reply to: How to link comments link to comments only page?anyone?
Forum: Fixing WordPress
In reply to: How to link comments link to comments only page?okay so i figured out that i just have to make another template, but how do i link to it?