uriash
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: hierarchical category titleo.k., I’ve found a solution alone, and it was so simple I don’t know how could’nt I notice that – the get_category_parents function does exactly what I needed..
though – with a very small but annoying problem:
when using separators, there is one more separator displayed after the last category (the youngest child), while that separator has nothing to do there. is it a bug?Forum: Fixing WordPress
In reply to: hierarchical category titleanyone? please? 🙂
Forum: Fixing WordPress
In reply to: Comments on PagesHi webdawg,
maybe I can help you (although the last reply here is very old so maybe you’ve already found a solution)
I made a custom template for a page with comments using this code:
<?php get_header(); ?><div id="content" class="narrowcolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>
</div>
<div id="contact">
<?php comments_template(); ?>
</div>
<?php endwhile; else: ?><p><?php _e('אין פה שום דבר כזה.'); ?></p>
<?php endif; ?>
</div>
First, I think that the<?php comments_template(); ?>command must be inside the Loop in order to work.
second, I’ve put it in a div with a css class that I created and added to the style.css. so, in fact, you can use the same comments template but put it in a different div and it can look completely different.Forum: Plugins
In reply to: Picture Frame 1.0I don’t find the plugin site. does anyone knows where did it go?
Forum: Fixing WordPress
In reply to: the content and the [p] tagI tried that plugin and also this one:
http://www.uberdose.com/php/mime-wordpress-plugin/
but they both didn’t solve the sticky<p>problem.Forum: Fixing WordPress
In reply to: the content and the [p] tagthanks but how can I take off all those damn
<p>tag which wordpress inserted into all my old posts? it’s crazy, even if I paste from notepad and then publish the post it gets a<p>tag!Forum: Fixing WordPress
In reply to: padding-top mysteryI think it’s something to do with the “float:right” function and the way FF iterprets it maybe? (because when I remove it the padding disappears (but I need to use the float so I can’t just remove it)
Forum: Fixing WordPress
In reply to: padding-top mysterywell it is even stranger than before! if you add www to the address the page will validate.. :
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.uriashi.com%2F%3Fpage_id%3D38&charset=%28detect+automatically%29&doctype=Inline
and the tenacious padding is still there. 🙁Forum: Fixing WordPress
In reply to: Page not found using “posts_nav_link” within the loop in WP PagesHi,
I think there’s definitely a problem with the post_nav_link, as I have a similar problem with it:
http://wordpress.org/support/topic/65201?replies=2
and I searched around and it seems that everyone are a bit hazy with this function. could any of the moderators here find a remedy?Forum: Fixing WordPress
In reply to: display the category parent’s assigned icon?found the solution here (if anyone here is actually interested): http://wordpress.org/support/topic/39343?replies=7#post-221853
is it only me, or this forum became a bit of a wasteland lately?
Forum: Fixing WordPress
In reply to: to www or not to wwwkoo koo
Forum: Fixing WordPress
In reply to: how to create my own contact page without any plugin?I did it my way!
Here’s how:
1.create a new “contact” template and put a<div id=contact>around the<?php comments_template(); ?>code. then make your contact page use the ‘contact’ template.
2. in the comments.php, span everything but the comments form template and then, in the style.css insert:
#contact span {display: none;}
this way, when you are in the contact page (and only then) the comments template will show only the form and not the other people’s comments.
3. to redirect the commenter to a “thanks-for-your-comment” page upon submiting his comment you can insert in the comments.php the following code: (it goes at the end of the comments form)
<?php if ( is_page('contact')) { ?>
<input type="hidden" name="redirect_to" value="thank-you-page" />
<?php } else { // Not a contact page ?>
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php } ?>
that’s it! no need for a plug-in..Forum: Fixing WordPress
In reply to: how to create my own contact page without any plugin?so? no idea?
Forum: Fixing WordPress
In reply to: how to create my own contact page without any plugin?your contact template are great spencerp.
the problem I’m having is that my wordpress blog is in hebrew, and thus it is going from right to left. changing the direction of the form was difficult, not to mention the fact that I want it to look the same as my comment template, which took me a lot of time to design
you can see my comment template here for example:http://uriashi.com/?p=52
(at the bottom of the page)
the thing is I really don’t want to mess with those plugins anymore however cool they are, since I realy need to find a way to use the comment template as the contact form.Forum: Fixing WordPress
In reply to: how to create my own contact page without any plugin?Hi spencerp and MichaelH
I tried dealing with the plugins but It was too complicated to reach the same design that I wanted.
but isn’t that a bit silly? why can’t we just use the comment s template and put it in a page in a way that the comments won’t show and only the form will?
with my little understanding I feel that it is possible to accomplish that with the if statement I mentioned above.