Need help targeting a custom post type with conditional tags

You want the first parameter ($post_type) of register_post_type() – by default this is used for the “slug“, so in your case it’s: content-block The name and singular-name labels you refer to are just for display purposes – see get_post_type_object() for an example. So this should work (note I’ve not tested the rest of your advert … Read more

Offering Ads Dependent on Visitor Type?

There are systems that do something similar, particularly for Example 2. What Would Seth Godin Do, for example, stores a cookie in the user’s browser that tracks the number of times they’ve visited the site. If they’re a new visitor (have visited less than 5 times), it displays a message suggesting they subscribe to the … Read more

Specific and Different Ads for each Post?

Hi @ewakened: The simplest solution would be to have them upload the ads as photos using the media features in WordPress and then to have them add custom field called “Advertisement” with the URL to the ad copied from the media module, and a custom field called and “Ad URL” to link to the advertiser’s … Read more

How do I show google ads between post content?

You can use a shortcode or the_content filter. I think the_content filter is better because your don’t introduce any string in your post, so the content can be exported and used in another platforms if needed. For emxample, for show a block of adsense after the first parragraph: add_filter( ‘the_content’, ‘tbn_ads_inside_content’ ); function tbn_ads_inside_content( $content … Read more