andreacutelli
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how make a looping post links..?resolved with plugin:
Loop Post Navigation LinksForum: Fixing WordPress
In reply to: How to say “if category exists..I have resolved!
if( is_category('photographs-' . get_post_meta($post->ID, "artist", true)) ) echo('<li><a href="http://www.domain.com/artists/photographs-'.get_post_meta($post->ID,'artists',true).'">'.' photographs'.'</a></li>');but It works only on archives page.. but not in a simple page..
anyone knows why?
Forum: Fixing WordPress
In reply to: How to say “if category exists..uhm.. sorry but the problem is more difficult.
I have tryed this line:
<?php if( is_category('photographs-' . get_post_meta($post->ID, "artist", true)) ) echo '<li><a href="' . get_option('home') . '/">photographs</a></li>';
..and it works fine!but the echo link must be different that home url
I would display this:http://www.domain.com/artist/photographs-of-
<?php echo get_post_meta($post->ID, "artist", true); ?>/how I code php?
Forum: Fixing WordPress
In reply to: How to say “if category exists..I have resolve half problem with:
<?php if( is_category('categoria-' . get_post_meta($post->ID, "whatiwant", true)) ) echo '';but the problem, now, is echo ..
I cannot display the correct url made of a static url + a query string.
es.
<li><a href="http://www.mydomain.com/categoria-<?php echo get_post_meta($post->ID, "whatiwant", true); ?>/">example</a></li>how is the correct sintax?
Thank’you very much, I really appreciate your efforts to help me!
Forum: Fixing WordPress
In reply to: How to say “if category exists..thanks 4 reply but not works.. π
Forum: Fixing WordPress
In reply to: How to say “if category exists..well, I have a custom field with a specific value (es. xxxxx)
this specific value is a part of a category name (es. category-xxxxx)
I wish that:
if category-xxxxx exists, display a link of this kind
<a href="www.site.com/category-xxxxx/>category of xxxxx</a>
else do nothingthanks a lot esmi
Forum: Fixing WordPress
In reply to: How to say “if category exists..ops.. I have write wrong href..
and the echo must be this:
<li><a href=" <?php echo get_option("home"); ?>/<?php echo get_post_meta($post->ID, "whatiwant", true); ?>/">example</a></li>Forum: Fixing WordPress
In reply to: query string into a conditional tags.. how to?uhm..
I have written half problem :-))I must do this:
<?php if( is_category(‘4’) ) echo ”;?>
but ‘4’ (the category) must be this:
category-<?php echo get_post_meta($post->ID, “whatiwant”, true); ?>and the echo must be this:
<li><a href=" <?php echo get_option("home"); ?>/<?php echo get_post_meta($post->ID, "whatiwant", true); ?>/">example</a></li>how can I write this in php..??
sorry again..!Forum: Fixing WordPress
In reply to: How to say “if category exists..thank’you very much esmi !! :)))
..may I ask another thing ?
I must write this:
<?php if( is_category(‘4’) ) echo ”;?>
but the category must be this:
category-<?php echo get_post_meta($post->ID, “whatiwant”, true); ?>and the echo must be this:
<?php echo get_post_meta($post->ID, “whatiwant”, true); ?>/”>
how can I write this in php..??sorry again..!
Forum: Fixing WordPress
In reply to: images outside the loopuhm.. I think that is too much difficult for me.
Forum: Plugins
In reply to: [Post attached Image] Images outside the loopHave you solved..?
Forum: Developing with WordPress
In reply to: Custom Fields outside of loopHi there..
I have read it but I have a question:is possible upload an image to post or page and display it outside the loop..?
there is a guide or tutorial..?thank’you!
Andrea