teccus
Forum Replies Created
-
Forum: Themes and Templates
In reply to: PHP is_single in post?Yes the search function is magical. But none of those posts solve my problem. The plugins only allow ‘Echo’..
They don’t allow me to do if(is_single()), do they..
Forum: Themes and Templates
In reply to: PHP is_single in post?Well I want that image from that post to be displayed only if it is on the single.php…
So eg..
Text text text
<display pic if is single.php
Text text text
Why can’t I use php in my post?
Forum: Themes and Templates
In reply to: Archive dropdownWell.. anyone? I’m sure it isn’t that hard.
Forum: Themes and Templates
In reply to: Archives selectionLike how do I add selected=’selected’ to the <option> ?
Forum: Themes and Templates
In reply to: One date tag and all posts for that dateAnyone? I wouldn’t have thought it’s that hard and that I just can’t work it out..
Forum: Themes and Templates
In reply to: Permalinks and CommentsI’ve basically just set out a demo like below:
<?php if ( strpos ($_SERVER[‘REQUEST_URI’], “comments-only”) : ?>
<!– don’t show posts –>
<h1>not showing posts</h1>
<?php else : ?>
<!– Do show posts! –>
<h1>ooo a post</h1>
<?php endif; ?>And in the url it goes:
http://www.mysite.com/index.php/test-post-here/comments-only/
Forum: Themes and Templates
In reply to: Permalinks and CommentsHey again. I got one working, just wanted to try out your other method:
<?php if ( strpos ($_SERVER[‘REQUEST_URI’], “comments-only”) : ?>
<!– don’t show posts –>
<?php else : ?>
<!– Do show posts! –>
<?php endif; ?>When I use this, either way it displays nothing, source-code is empty in the browser.. Any ideas?
Forum: Themes and Templates
In reply to: Permalinks and CommentsI’m an idiot. &comments=true..
Works now, cheers for the help matey.
Forum: Themes and Templates
In reply to: Permalinks and CommentsWhat I’ve done is modified my permalink to:
http://www.mysite.com/?p=32?comments=true
But it only seems to display the comments and never do they bit if comments != true
Forum: Themes and Templates
In reply to: Permalinks and CommentsI’ve got it not not server errroring with 500 now. I’m going to have a play, will post back later if I get a result.
Forum: Themes and Templates
In reply to: Permalinks and CommentsYep, Yahoo Hosting with no access to .htaccess :-/
Forum: Themes and Templates
In reply to: Permalinks and CommentsOK. I’m a bit stuck..
The URL i end up with is: http://www.mysite.com/index.php/2006/this-is-a-test/?only_comments=true
But I’m getting a 500 server error.. What am I doing wrong?
Forum: Themes and Templates
In reply to: Permalinks and CommentsBrilliant, that’s what I had in my head, but I wasn’t sure about the coding! I’ll give it a go..
Forum: Plugins
In reply to: Removing post from comments pageAhh, cheers mate! I got it working, you’re a star! You sparked that match inside my head that we call a brain.
DM
Forum: Plugins
In reply to: Removing post from comments pageWhat .php generates the post on the comments page?