Questions tagged [ads]

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

0
votes
0answers
19 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 ...
0
votes
0answers
13 views

How can I remove ads from specific category's, tags and archive's all post on my wordpress website?

I have created a question answer website in WordPress named "Answers Mode". I'm using Google Ads. But recently, Google has suspend ads for a specific post's ads. Here is My adsense Affected post see ...
1
vote
3answers
73 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 ...
1
vote
1answer
18 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; ...
0
votes
0answers
18 views

How to lock a page wordpress with ads?

i would like to know if there is a method to lock a wordpress page with ads. I explain better, i would like to lock some content but at the same time to let my users read my content only after they ...
0
votes
0answers
980 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 ...
0
votes
1answer
47 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"> ...
0
votes
1answer
71 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 =...
-2
votes
1answer
76 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!
3
votes
2answers
152 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 ...
1
vote
1answer
47 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. ...
1
vote
1answer
143 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 ...
1
vote
1answer
486 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:...
0
votes
0answers
63 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 ...
-1
votes
1answer
512 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 ...
0
votes
1answer
12 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 ...
1
vote
2answers
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 ...
0
votes
1answer
108 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 ...
0
votes
1answer
289 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 ...
0
votes
1answer
143 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 ...
0
votes
2answers
554 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 ...
4
votes
1answer
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 ...
0
votes
1answer
118 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('...
1
vote
1answer
61 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 ...
1
vote
1answer
326 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 ...
1
vote
1answer
110 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 ...
0
votes
2answers
1k 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 ...
1
vote
1answer
203 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 ...
3
votes
2answers
101 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 ...
1
vote
2answers
261 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 ...
0
votes
2answers
101 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. ...
0
votes
1answer
495 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' ...
2
votes
3answers
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 ...
3
votes
3answers
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
2answers
137 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 ...