transpersonal
Forum Replies Created
-
Does anyone know please?
Forum: Fixing WordPress
In reply to: How to display the total number of comments?Thanks a lot whooami, worked like a charm!
Forum: Fixing WordPress
In reply to: How to make Content border?That’s done by repeating an image in the background of the wrapper div. First find a theme that has such a background. Then grab the background image from it. Next using css repeat that background image vertically as the background of your wrapper div. It should look something like this:
#wrapper { background: url(img/backgroundImage.png) repeat-y; }
Never mind, I’m using this now:
<?php if (is_search()) { ?> stuff <?php } else { ?> more stuff <?php } ?>
Resolved.
Thanks iridiax, it displays now without the error. There are other problems though like the blur effect in the input field doesn’t work, etc. So maybye using that format of conditional statement isn’t the right one for this purpose. I have always used the following format effectively. There’s no quotes that can conflict with the quotes in my html code. Do you know how to add a else to it:
<?php if(is_search()){ ?> Stuff <?php } ?>
Forum: Fixing WordPress
In reply to: Extra line spacesTag got stripped, I meant break tags:
<br />
Forum: Fixing WordPress
In reply to: Extra line spacesHow about using html
tags, it’s also a very amateur way of doing it but it should work.If you always need extra space under each paragraph then you can use CSS. Suppose the main area on your page is a div called:
<div id=”content”>
You can put this this in your css file:
#content p {
margin: 0 0 10px 0;
}iridiax, not sure if I’m doing what you told right but this doesn’t remove the error:
<?php if (is_search()) { echo "'<input type="text" name="s" onblur="if (this.value == '') {this.value = 'Search';}" onfocus="if (this.value == 'Search') {this.value = '';}" value="Search" class="search_bar" />'"; } else { echo "'<input type="text" name="s" value="<?php the_search_query(); ?>" class="search_bar_2" />'"; } ?>
Forum: Fixing WordPress
In reply to: Need a little help with this bookmarking codeNever mind, I found a different script that works. Resolved.
Thanks for all your help tomontoast, but the code just won’t work. And I do have tags on every single post on my site. Anyway don’t worry about it, I found a core-hack solution:
In wp-includes/taxonomy.php there is this line:
$defaults = array(‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘fields’ => ‘all’);
I just changed the ‘orderby’ from ‘name’ to ‘term_order’. And it works – on single posts the ordering is based on the order the tags were given. However on the home page the ordering is as was before (ABC). Oh well, it’s more important that the non-ABC order be on the post pages anyway, Guess you can’t have it all ??
Thanks again.
Sorry tomontoast but still nothing shows…
This time there is no error but after changing the template tag to:
<?php the_better_tags(); ?>
no tags show at all…
Thank You So Much tomontoast!!!!
I really appreciate you taking the time to write that code, if it works it will be immensely helpful. At the moment I’m having a little trouble, adding the code within the loop of functions.php gives the following error:
Parse error: syntax error, unexpected T_IF
Anyone?
Hi tomontoast,
Any idea what a functions.php hack for this would be? I don’t know PHP so I’m lost here.