• Resolved mrretail

    (@mrretail)


    Hello,
    I set up a banner to show to all countries other than Australia and also to Northern Territory, Western Australia and Tasmania. This is because my client is not allowed to sell their plants to those countries and states and they needed a banner to tell this to visitors from those locations. Rather than manually add the code to every page and post, I used a plugin called “Head, Footer and Post Injections” to insert the code in the header of all pages and posts at once. The banner slug is “no-sale” and the code I inserted was this:

    [wp_bannerize_pro_geo country_code=”AX,AF,AL,DZ,AS,AD,AO,AI,AQ,AG,AR,AM,AW,AT,AZ,BS,BH,BD,BB,BY,BE,BZ,BJ,BM,BT,BO,BQ,BA,BW,BV,BR,IO,VG,BN,BG,BF,BI,CV,KH,CM,CA,KY,CF,TD,CL,CN,CX,CC,CO,KM,CD,CK,CR,HR,CU,CW,CY,CZ,DK,DJ,DM,DO,TL,EC,EG,SV,GQ,ER,EE,ET,FK,FO,FM,FJ,FI,FR,GF,PF,TF,GA,GM,GE,DE,GH,GI,GR,GL,GD,GP,GU,GT,GG,GN,GW,GY,HT,JO,HM,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IM,IL,IT,CI,JM,JP,JE,KZ,KE,KI,XK,KW,KG,LA,LV,LB,LS,LR,LY,LI,LU,MO,MK,MG,MW,MY,MV,ML,MT,MH,MQ,MR,MU,YT,MX,MC,MN,ME,MS,MA,MZ,MM,NA,NR,NP,NL,NC,NZ,NI,NE,NG,NU,NF,KP,MP,NO,OM,PK,PW,PS,PA,PG,PY,PE,PH,PN,PL,PT,PR,QA,RE,KR,LT,MD,CG,RO,RU,RW,ST,SH,LC,MF,PM,VC,BL,WS,SM,SA,SN,RS,SC,SL,SG,SX,SK,SI,SB,SO,ZA,GS,SS,ES,LK,KN,SD,SR,SJ,SZ,SE,CH,SY,TW,TJ,TZ,TH,TG,TK,TO,TT,TN,TR,TM,TC,TV,UM,VI,UG,UA,AE,GB,US,UY,UZ,VU,VA,VE,VN,WF,EH,YE,ZM,ZW”]
    [wp_bannerize_pro id=”no-sale”]
    [/wp_bannerize_pro_geo]
    [wp_bannerize_pro_geo region_code=”NT,TAS,WA”]
    [wp_bannerize_pro id=”no-sale”]
    [/wp_bannerize_pro_geo]

    At first it worked perfectly but later it started showing for every state, including those not on the list, e.g. Queensland, where we are located. The only change was the cache was purged, as it is set to do so automatically. Could this be causing the issue, or have I done something else wrong?

    I have turned everything off for now, but can turn it back on, if you need to see the problem first hand.

    Thank you, Bryan

    The page I need help with: [log in to see the link]

  • The topic ‘Shows for wrong states after cache purge’ is closed to new replies.