{"id":82454,"date":"2018-03-05T12:56:46","date_gmt":"2018-03-05T12:56:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-adposts\/"},"modified":"2018-03-06T16:31:44","modified_gmt":"2018-03-06T16:31:44","slug":"wp-adposts","status":"publish","type":"plugin","link":"https:\/\/roh.wordpress.org\/plugins\/wp-adposts\/","author":15967954,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.0","stable_tag":"trunk","tested":"4.9.29","requires":"4.6","requires_php":"5.2.4","requires_plugins":"","header_name":"WP AdPosts by Kader Bouyakoub","header_author":"Kader Bouyakoub","header_description":"Allows you to create ads using codes or images and provides views and clicks counters, as well as locations management. You can even use the provided shortcode to insert ads into posts and pages.","assets_banners_color":"","last_updated":"2018-03-06 16:31:44","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/bit.ly\/2FrdpOg","header_plugin_uri":"https:\/\/go.ianhub.net\/2FUtrOF","header_author_uri":"http:\/\/bit.ly\/KaderGhb","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1106,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog","faq"],"tags":[],"upgrade_notice":{"1.3.0":"<p>With this upgrade, it is now possible to automatically display ads within posts by simply enabling it on the settings pages, choosing the location from which ads will be randomly picked, then choose after what paragraph the ad should be displayed. Setting this to a huge number (i.e: 99) will display the ad at the end of the post.<\/p>","1.2.0":"<p>The default location meta box was replaced with a custom one.<\/p>","1.0.1":"<p>For more security, inputs and outputs were sanitized.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1834657","resolution":"128x128","location":"assets"},"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1833667","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1834657","resolution":"256x256","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1833667","resolution":"256x256","location":"assets"},"icon.svg":{"filename":"icon.svg","revision":"1834657","resolution":"","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1833678","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1834657","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1833678","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1833678","resolution":"4","location":"assets"},"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1833678","resolution":"5","location":"assets"},"screenshot-6.png":{"filename":"screenshot-6.png","revision":"1833678","resolution":"6","location":"assets"}},"screenshots":{"1":"After activation, you will see the plugin menu item on your dashboard.","2":"On your settings page, make sure to select only desired ads sizes to avoid creating multiple useless thumbnails for uploaded ads images.","3":"This is where you can manage your ads locations, or as some like to call them \"sizes limitations\".","4":"Creating ads is as easy as creating WordPress posts or pages.","5":"On the ads management page, you can track your ads views (displays) and clicks.","6":"An example of displayed automatic ads or using shortcodes (within the blog post)."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[321,784,162,1644,153934],"plugin_category":[35],"plugin_contributors":[153935],"plugin_business_model":[],"class_list":["post-82454","plugin","type-plugin","status-publish","hentry","plugin_tags-ads","plugin_tags-banner","plugin_tags-widget","plugin_tags-wordpress-com","plugin_tags-wp-adposts","plugin_category-advertising","plugin_contributors-bkader","plugin_committers-bkader"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/wp-adposts\/assets\/icon.svg?rev=1834657","icon":"https:\/\/ps.w.org\/wp-adposts\/assets\/icon.svg?rev=1834657","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-adposts\/assets\/screenshot-1.png?rev=1833678","caption":"After activation, you will see the plugin menu item on your dashboard."},{"src":"https:\/\/ps.w.org\/wp-adposts\/assets\/screenshot-2.png?rev=1834657","caption":"On your settings page, make sure to select only desired ads sizes to avoid creating multiple useless thumbnails for uploaded ads images."},{"src":"https:\/\/ps.w.org\/wp-adposts\/assets\/screenshot-3.png?rev=1833678","caption":"This is where you can manage your ads locations, or as some like to call them \"sizes limitations\"."},{"src":"https:\/\/ps.w.org\/wp-adposts\/assets\/screenshot-4.png?rev=1833678","caption":"Creating ads is as easy as creating WordPress posts or pages."},{"src":"https:\/\/ps.w.org\/wp-adposts\/assets\/screenshot-5.png?rev=1833678","caption":"On the ads management page, you can track your ads views (displays) and clicks."},{"src":"https:\/\/ps.w.org\/wp-adposts\/assets\/screenshot-6.png?rev=1833678","caption":"An example of displayed automatic ads or using shortcodes (within the blog post)."}],"raw_content":"<!--section=description-->\n<p>WP AdPosts plugin allows you to create ads using codes or images and provides views and clicks counters, as well as locations management. You can even use the provided <strong>shortcode<\/strong> to insert ads into posts and pages.<\/p>\n\n<h4>Manage Ads<\/h4>\n\n<p>You have two ways of creating ads:<\/p>\n\n<ul>\n<li>By uploading featured images only and provided ads links.<\/li>\n<li>By pasting ads codes (JavaScript) or full HTML.<\/li>\n<\/ul>\n\n<p><strong>Note<\/strong>: If you use full HTML, it is better to enter your ads links into the \"Ad Link\" field.<\/p>\n\n<p>In order to display an ad on your front-end, you can use the provided php function on your theme's files like so:\n    \nLocation here stands for the created location's <strong>slug<\/strong>. So if you created a <strong>Header<\/strong> location, it may have the <strong>header<\/strong> slug, so you do:\n    <\/p>\n\n<p>WP AdPosts enabled shortcodes on text widgets, so you can as well use a text widget in which you can use this provided shortcode like so:\n    [wp-adposts location=\"header\"]<\/p>\n\n<p>Using the location, as an argument for the function or an attribute for the shortcode, will display a single randomly picked ad to which it was assigned.<\/p>\n\n<p>As of version <strong>1.3.0<\/strong>, it is possible to display a specific ad by its ID, passed to the php function in your theme's files like so:\n    \nOr used as shortcode attributes like the example below:\n    [wp-adposts ad=\"123\"]<\/p>\n\n<p><strong>THINGS YOU SHOULD KNOW<\/strong>:<\/p>\n\n<ul>\n<li>To display an ad by its ID, make sure to assign a location to it in order to display it with the selected dimensions. Ads with no locations assigned will not be displayed.<\/li>\n<li>Priority is to ad ID. So if you use both attributes in the shortcode, the <strong>ad<\/strong> will be used. If the ad is not found, even if the location exists and has ads assign to it, nothing will be displayed.<\/li>\n<\/ul>\n\n<h4>Manage Locations<\/h4>\n\n<p>They are much more like \"sizes\" limitations. A location can have a specified ads sizes so that ads will be contained in them. For instance, if a location has 728 pixles by 90 pixels (728x90), anything that is beyond that is simply hidden.<\/p>\n\n<h4>Views and Clicks Counters<\/h4>\n\n<p>You will see on ads management page views and clicks counters. These are useful to keep an eye on your ads.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/wp-adposts<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Use the Settings-&gt;WP AdPosts screen to configure the plugin.<\/li>\n<li>Add as many locations as you want, but please do not forget to select ads sizes because it is important.<\/li>\n<li>Add you ads by uploading featured images or pasting code into the editor and don't forget to add the ads links in order to track clicks.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>It is now possible to display ads within posts content.<\/li>\n<li>The php function or shortcode accept now the ad ID in order to display a specific ad.<\/li>\n<li>Settings page enhanced.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>The default location meta box was replaced with a custom one.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Some input and output sanitizing were added.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First plugin commit.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/wp-adposts<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Use the Settings-&gt;WP AdPosts screen to configure the plugin.<\/li>\n<li>Add as many locations as you want, but please do not forget to select ads sizes because it is important.<\/li>\n<li>Add you ads by uploading featured images or pasting code into the editor and don't forget to add the ads links in order to track clicks.<\/li>\n<\/ol><\/dd>\n\n<\/dl>","raw_excerpt":"Easy ads creation and management using images or codes. display your ads anywhere, automatically or using shortcodes, with views and clicks counters.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/82454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=82454"}],"author":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bkader"}],"wp:attachment":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=82454"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=82454"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=82454"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=82454"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=82454"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=82454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}