Jump to content

Php misshaps...


qwert

Recommended Posts

Elaborate on, "doesn't work".

 

You're missing a single quote after B.

 

has_tag('B')

 

Thanks, but

Still can't get it to work...

 

<?php if (in_category('A') || has_tag('B') ) { ?>

<b><a href="<?php the_permalink() ?>">Please visit the thread</a></b>

<?php } else { ?><?php $more = 1; the_content('', TRUE); ?><?php } ?><?php endif; ?>

Link to comment
https://forums.phpfreaks.com/topic/158978-php-misshaps/#findComment-838455
Share on other sites

Please explain what's wrong.  What's supposed to happen.  What's not supposed to happen.  Are there errors?

 

NOTE - Surround your code with


tags.

 

It is supposed to detetect weather there is a tag "A" in an article "B" and if there is - to put a link leading to the article, with the nam,e - Please visit etc. Is my basic idea. Otherwise said, I dan't want users to see the whole article thrrough RSS, but rather to be motivated to come to the site.

 

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/158978-php-misshaps/#findComment-838494
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.