Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.