php - Need to make a Code like a Banner for custom posts -




i have idea haven't knowlage make alive.

i have site ads on wordpress , need make code wich on right side on widget , hook images ads (1 image each ad) , make them clickable link ad. ads on custom posts type.

so let's start:

need "start code" after "get custom post checkbox checked", "get 1 image", "get link of post" allso need make max number each user don't care if ads randomly chosen.

i know checkbox on ad (on admin page) can hooked get_post_meta( get_the_id(), 'top_ad', true ) when it's checked.

it can made like

<div id=1>the code of 1st ad</div>

<div id=2>the code of 2d ad</div>

etc... no repeats

that's know, hope it's can done.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -