Questions tagged [ads]

Ads are media displayed on a site to alert visitors of products or services that may be of interest to them.

Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

Different ads on every website on multisite environment

I am using following code to insert ad in article, after 8th paragraph, through functions.php file: add_filter( 'the_content', 'prefix_insert_post_ads' ); function prefix_insert_post_ads( $content )...
ZeusDev's user avatar
0 votes
1 answer
17 views

Website show Google Ads when we have no Google Ads linked to our website

Today we noticed that one of our website has started showing random Google Ads on our website when we have not added any Google Ads to our website. I would appreciate if someone can help in case they ...
Learning's user avatar
  • 101
0 votes
0 answers
19 views

Have unique URLs on the ad site

For some time now I have had a problem with an ad site that I am developing with wordpréss. I am unable to generate unique pages with the post id as in this example website: ... Acer-nitro-17-gtx-1650-...
krad wiz's user avatar
0 votes
0 answers
20 views

Ad units Div-ids frequently changing

I have a strange issue with my website, the div-ids frequently changing for AD units. How to make them static? I copy the code from the Google ad unit and paste it to my site but the Div-ids ...
Extra Sport's user avatar
0 votes
1 answer
179 views

How to prevent Google adsense invalid impressions while performing admin tasks on my wordpress site?

I've added google adsense to my website. Currently I've got pretty less traffic (~3-30 visitors everyday). I'm afraid that if I use my wordpress admin panel / write a post / view a post etc then it ...
Mugen's user avatar
  • 135
0 votes
0 answers
39 views

My website frequently redirect to a different advertisement URL

Can you guys help me to figure out why it's happening? Its mainly happen from my search engine result. From Google search when I click on my website it will redirect to a scam website. Note: now its ...
Rohi's user avatar
  • 1
1 vote
3 answers
2k views

How to create a php url redirection for nicer links

I'm looking for a way to make a URL redirection for affiliate links on my website. Something like : site.com/go/keyword I know there is many plugins for doiing this, but i don't like plugin, and i ...
Gregory's user avatar
  • 584
1 vote
1 answer
76 views

How to hide Ads in between posts on AMP? [closed]

I am using the following code to show ads on my posts after Para 4:- add_filter( 'the_content', 'prefix_insert_post_ads' ); function prefix_insert_post_ads( $content ) { $ad_code = My Ad code; ...
droidtaber's user avatar
0 votes
0 answers
2k views

Avoid enormous network payloads

Running a WP site, so asking here. Google speed test shows "Avoid enormous network payloads - Total size was 8,265 KB" (static.doubleclick.net) - 514.2 KB (static.doubleclick.net) - 514.2 KB And ...
Azz Kawa's user avatar
  • 103
0 votes
1 answer
109 views

Advertisement in Loop Posts wordpress

I'm new here I want some help from you in terms of coding in wordpress. The point is that I want to make advertising between items as shown below: <div class="row top-articles"> ...
Beri's user avatar
  • 1
0 votes
1 answer
342 views

Insert ads below the title

I'm creating a plugin for insert ads. I want to insert ad below the title. I'm using the theme MH Magazine Lite Im doing my plugin like this: function diww_pre_content($content) { $pre_content =...
Kenyis's user avatar
  • 3
-2 votes
1 answer
108 views

How to hide a script ( an ad) from a specific post? [closed]

I would like to hide a script, an ad actually from a specific post. The script is placed on header. I am a rookie here so please help!
nikam's user avatar
  • 7
3 votes
2 answers
383 views

Calling shortcode in wp_localize_script strips result

I am working on adding some functionality on a Wordpress plugin which after a certain click needs to call on some shortcode through ajax. What I first attempted was to call the shortcode inside of ...
thairish's user avatar
  • 213
1 vote
1 answer
78 views

Add Adsense to a website but the server responds with error 510 [closed]

I'm trying to add Ads to my website. The website is made with Wordpress. I'm going to Options < Adsense < Ad Manager Then I click manage Ads. After that, google starts to analyze my page. ...
Sundaze's user avatar
  • 21
1 vote
1 answer
203 views

Self-serve ad system like Reddit's for Wordpress? [closed]

I'm currently building a Wordpress site and I want to implement a sort of "self-serve" ad system into my site similar to the system Reddit is using. Is there any sort of "self-serve" ad system or ...
user304165's user avatar
1 vote
1 answer
905 views

Need help targeting a custom post type with conditional tags

I found some code online to create content blocks on my WordPress blog. I use a content block at the bottom of the sidebar of my page for a shopping widget. Here's the relevant code from functions.php:...
tarynevelyn's user avatar
0 votes
0 answers
120 views

Ads below footer

A client of mine has ads on his website, which are managed by a CPT. The ads can be pulled in via a widget, hardcoded query and a shortcode. I have an issue that isn't consistent that I'm trying to ...
Austin Biggs's user avatar
-1 votes
1 answer
839 views

Showing ads after posts in home page

I am using this code for showing ads after one post in the home page. It's working fine. But I want to show an ad after one post and another one ads after 5 post. What will the loop be. Any ...
S.k.joy's user avatar
  • 11
0 votes
1 answer
18 views

How can I modify a post depending on the source of the traffic?

I have a wordpress site. If I include some javascript on a post, I show ads on the post. I want to only show that javascript when people come to my site from google search (as opposed to from twitter ...
bernie2436's user avatar
2 votes
2 answers
1k views

How do I show google ads between post content?

I want to show ads by Google between text content, like show 3 ads one after 1st para second after 3rd para and one at end of last para. I know i have to modify in single.php but being novice in php ...
Yasser Shaikh's user avatar
0 votes
1 answer
117 views

Assign specific ads to specific categories/posts

I've been playing around with solution to be able to show a different header banner on different categories, and hopefully later on, be able to extend that query to the post level. I've found a few ...
alexr's user avatar
  • 1
0 votes
1 answer
484 views

Can I use widgets & shortcode if I need to return an array?

I'm trying to achieve the following functionality. I have several widget 'areas' that I can place widgets into. I programmed these widget areas into the theme of my site and I can turn them on and ...
seangwright's user avatar
0 votes
1 answer
173 views

Temporary download page or restrict static download page based on how the user got to the page?

I basically want to know it if is possible to create a system where either when a user wants to download something it creates a temporary download page (not a download link, this I want static - I ...
Ryan Joseph Kita's user avatar
0 votes
2 answers
718 views

Insert Ads "into" comments section in Genesis Themework

I am trying to insert two 125x125 ads into the comment section of a Genesis Child Theme - The screen above shows where I would want it but I am at a total loss on where to insert this overall. I ...
Matthew Snider's user avatar
4 votes
1 answer
2k views

Track advertisement earnings per blog post and page in wordpress?

I have this unique situation (though i doubt it no one has ever asked this before!). I want to track advertisement earnings from a service like Adsense per blog post and per page or per author . Why ...
Danny's user avatar
  • 249
0 votes
1 answer
126 views

Want to include ad code after related post

I want to include ads HTML code after related post plugin. My site my single.php code below: <?php if ( get_option('...
Smart Shovon's user avatar
1 vote
1 answer
66 views

Guidelines / restrictions about advertising /donate begging unside wordpress plugins or themes

I remember to have read about this, but I can't find it anymore. Basically we are not allowed to advertise without the users consent inside plugin, its a good rule I think. I just want to see the ...
amy's user avatar
  • 385
1 vote
1 answer
342 views

Plugin for users to create their own ads like Google Adsence

Does any one know of a plugin to allow users to create ads on a format like Google Adsense (title, some text and a link). ? Something that may require some customization may do the job. Thanks in ...
user1068410's user avatar
1 vote
1 answer
115 views

Is there any way I can put google ads on wordpress.com? [closed]

I know they do not allow plugins on wordpress.com and hence no ads. I know I can put adds on own wordpress site hosted on my own domain. But I really like wordpress.com and the ease you can create ...
TheTechGuy's user avatar
0 votes
2 answers
2k views

Scrolling Ads? Live scrolling widget, not random on refresh

I have a current job where my client has requested to have their "sponsors" rotate in the sidebar widget. Right now I have a random ad widget which rotates them randomly... I was wanting to know if ...
matt's user avatar
  • 157
1 vote
1 answer
209 views

Any recommendation on how to manage ads?

I am in the process of creating a network of >40 sites with wordpress, and I am trying to put together the base that each site will use, for example all the sites will use google analytics so I will ...
nacvers's user avatar
  • 47
3 votes
2 answers
117 views

Is there a simple way to only show ads on a WordPress page once it becomes popular?

I am looking for a simple way to minimize ads on a website I'm developing in WordPress by only showing ads (Google Adsense, to be precise) on the site upon a large influx of traffic. A large influx ...
user avatar
1 vote
2 answers
293 views

Inserting ads into wordpress default rss feeds

i'm hoping i'd find some help in regards to inserting ads into wordpress default rss feeds (i do not use feedburner) <?php function insertAds($content) { $content = $content.'<hr /><a ...
swordfish81's user avatar
0 votes
2 answers
113 views

Highlight Ads for few seconds

I got a list of ads in my WordPress website on a sidebar. Is it possible to highlight an ad, that is, make it bigger in size for few seconds? I want to make each ad highlighted one after the other. ...
user4695's user avatar
  • 123
0 votes
1 answer
509 views

Problem with WP_Query loop and search term

I have a custom query to display random posts in my sidebar like this: $newQuery = array( 'post__in' => get_option('sticky_posts'), 'post_type' => 'ad_listing', 'posts_per_page' ...
Javier Villanueva's user avatar
2 votes
3 answers
1k views

Specific and Different Ads for each Post?

I am working with a magazine client who sells adversiting offline in their magazine and now has a WordPress online magazine. Each of their stories is broken into different posts, and they are using ...
neofetter's user avatar
  • 123
3 votes
3 answers
3k views

Sharing Ad Revenue among Users of a Multisite in a Collaborative Model?

Is anyone aware of some functionality to share the revenue among the users of a Multisite? A multisite lets other people create and mainatain their own blogs. The Multisite owner should able to ...
2 votes
2 answers
140 views

Offering Ads Dependent on Visitor Type?

I wish to be able to give different ads to visitors of different "types". For example: People from country X will get one ad, while people from country Y will get no ads. First time visitors will ...
Tal Galili's user avatar
  • 1,833