Hello, I want to add link in my wordpress blog which is only visible on internal pages+posts (not on homepage). Which code i need to use for this ? I know how to add homepage link only so please don't post code for that. DON.
You may try this code <?php if ( [B]is_page()[/B] || [B]is_single()[/B] ) { echo '<div id="internalpagelink"> <a href="http://www.digitalpoint.com/work/">Your Link Anchor Here</a></div>' ; } ?> Code (markup):
Sorry Don am travelling... Anyways here's the new code.. <?php if ( [B]is_page()[/B] || [B]is_single()[/B] || [B]is_archive()[/B] ) { echo '<div id="internalpagelink"> <a href="http://www.digitalpoint.com/work/">Your Link Anchor Here</a></div>' ; } ?> Code (markup): Hope it helps... Pulse Content