uriash
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how to create my own contact page without any plugin?I tried learning from that plug-in but I don’t have enough PHP knowledge to decrypt it to my wishes.
but doesn’t my idea from above easy to accomplish? (I mean, if you’re not as dummie as me.. :))Forum: Fixing WordPress
In reply to: how to create my own contact page without any plugin?ok, I’ll help you to help me:
I’ve figured out that probably I can insert an if statement into the comments.php that’ll say something like `if this is the contact page do not show the comments and only show the comments template’?
now how do I translate this statement from dummies language into PHP language, and where should I put it in the comments.php? pleaaaase help me with that,
uriForum: Fixing WordPress
In reply to: display the category parent’s assigned icon?o.k. I tried it alone but it doesn’t work..
I tried inserting the following code:
<a href="<?php echo get_settings('home'); ?>/?cat=<?php
$cat = single_cat_title(); echo $cat->cat_ID;
?>" rel="bookmark"><img src="<?php
$cat = single_cat_title(); echo $cat->cat_ID.gif;
?>" alt="<?php single_cat_title('כל הרשימות שהופיעו במדור '); ?>" title="<?php single_cat_title('כל הרשימות שהופיעו במדור '); ?>" class="centered"/></a>
but the title doesn’t show the page’s category’s ID’s gif icon, but instead it looks for the page’s category’s name‘s gif icon. I thought that if I write in the code:<?phpit will output the ID.gif, but it seems I’m wrong somewhere.. It’d be so much easyer if there was a single_cat_ID option..
$cat = single_cat_title(); echo $cat->cat_ID.gif;
?>Forum: Fixing WordPress
In reply to: display the category parent’s assigned icon?I bump therefore I live
Forum: Fixing WordPress
In reply to: problem with post_nav_linkHi sadish,
changing the blog address to http://uriashi.com/ did the trick.
thanks,
uriForum: Fixing WordPress
In reply to: display the category parent’s assigned icon?Hi Kafkaesqui,
your method worked great, but now I have a new (but related) problem: in the archive page I’ve put this code:
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class="pagetitle">
<a href="<?php echo get_settings('home'); ?>/?cat=<?php the_category_ID(); ?>" rel="bookmark"><img src="<?php the_category_ID(); ?>.gif" alt="<?php single_cat_title(); ?>" title="<?php single_cat_title(); ?>" class="centered"/></a></h2>
now the problem appears when the most recent post is belonged to a child category, then the parent category’s arcive page is titled with the icon of the child one.
what I want to achive is that the page will show the icon of the correct category ( I guess I’ll need to use the get_the_category and then do something like $cat->ID ?) also, if a post in the archive is belonged to a child category then I want it (the post, not the page) to have the icon of the child category.
thanks again for a great help.
uriForum: Fixing WordPress
In reply to: problem with post_nav_linkhi sadish,
the values for the fields are:
WordPress address (URI): http://uriashi.com/blog
Blog address (URI): http://www.uriashi.com
when I try to change the blog address URI to http://www.uriashi.com/blog , but then all my site disappeared.Forum: Fixing WordPress
In reply to: display the category parent’s assigned icon?shhhhhwowwww! you are JENIUS!!!!! thanks!
Forum: Fixing WordPress
In reply to: unique template for a single post page that is related to a categorygreat, thanks.
I, by the way, still uses the 1.5 wp.Forum: Fixing WordPress
In reply to: unique template for a single post page that is related to a categoryhi Kafkaesqui,
any findings so far?Forum: Fixing WordPress
In reply to: Details on sidebar when hovering on a linkcool! cool! cool! cool!
and now for that to be really perfect, how can I trick it to insert the “spanned” content into the sidebar instead of absolutely positioning it? there must be a way..Forum: Fixing WordPress
In reply to: Details on sidebar when hovering on a linkI guess that it’s just too complicated?
(now what do you say about my new bumping manners? ;))Forum: Fixing WordPress
In reply to: unique template for a single post page that is related to a categorya few samples (it’s in hebrew but you can see the differance between the templates in the black description beneath the title [in category 3 it says “portfolio’])
the post of category 6:
http://www.uriashi.com/?p=36
the archive of category 6:
http://www.uriashi.com/?cat=6
the post of category 3:
http://www.uriashi.com/?p=39
the archive of category 3:
http://www.uriashi.com/?cat=3Forum: Fixing WordPress
In reply to: unique template for a single post page that is related to a categoryhi again,
It doesn’t work as I guessed it will (but I’m sure it’s my fault..):
I have a post under categoy 6. category 6 is a child of category 3. now the archive of category 6 inherits the archive of category 3’s template, but the post template of category 6 doesn’t inherit the template of the post of category 3.
also, when I change the $template_name to ‘category'(in the ‘post-templates-by-cat’ php) , the post of category 6 doesn’t inherit the template of category 3.
where am I wrong?Forum: Fixing WordPress
In reply to: unique template for a single post page that is related to a categorywoha!! I don’t believe it! you’re a genius! how did you do it so fast?
I’m going to try this.
still amazed..