Title: WP AdPosts by Kader Bouyakoub
Author: Kader Bouyakoub
Published: <strong>2018 年 3 月 5 日</strong>
Last modified: 2018 年 3 月 6 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/wp-adposts/assets/icon.svg?rev=1834657)

# WP AdPosts by Kader Bouyakoub

 作者：[Kader Bouyakoub](https://profiles.wordpress.org/bkader/)

[下载](https://downloads.wordpress.org/plugin/wp-adposts.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-adposts/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-adposts/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-adposts/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-adposts/#developers)

 [支持](https://wordpress.org/support/plugin/wp-adposts/)

## 描述

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**
shortcode** to insert ads into posts and pages.

#### Manage Ads

You have two ways of creating ads:

 * By uploading featured images only and provided ads links.
 * By pasting ads codes (JavaScript) or full HTML.

**Note**: If you use full HTML, it is better to enter your ads links into the “Ad
Link” field.

In order to display an ad on your front-end, you can use the provided php function
on your theme’s files like so:

Location here stands for the created location’s **slug**. So if you created a **
Header** location, it may have the **header** slug, so you do:

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:
 [wp-adposts location=”header”]

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.

As of version **1.3.0**, it is possible to display a specific ad by its ID, passed
to the php function in your theme’s files like so:

Or used as shortcode attributes like the example below:
 [wp-adposts ad=”123″]

**THINGS YOU SHOULD KNOW**:

 * 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.
 * Priority is to ad ID. So if you use both attributes in the shortcode, the **ad**
   will be used. If the ad is not found, even if the location exists and has ads
   assign to it, nothing will be displayed.

#### Manage Locations

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 (728×90), anything that is beyond that is simply hidden.

#### Views and Clicks Counters

You will see on ads management page views and clicks counters. These are useful 
to keep an eye on your ads.

## 屏幕截图

[⌊After activation, you will see the plugin menu item on your dashboard.⌉⌊After 
activation, you will see the plugin menu item on your dashboard.⌉[

After activation, you will see the plugin menu item on your dashboard.

[⌊On your settings page, make sure to select only desired ads sizes to avoid creating
multiple useless thumbnails for uploaded ads images.⌉⌊On your settings page, make
sure to select only desired ads sizes to avoid creating multiple useless thumbnails
for uploaded ads images.⌉[

On your settings page, make sure to select only desired ads sizes to avoid creating
multiple useless thumbnails for uploaded ads images.

[⌊This is where you can manage your ads locations, or as some like to call them "
sizes limitations".⌉⌊This is where you can manage your ads locations, or as some
like to call them "sizes limitations".⌉[

This is where you can manage your ads locations, or as some like to call them “sizes
limitations”.

[⌊Creating ads is as easy as creating WordPress posts or pages.⌉⌊Creating ads is
as easy as creating WordPress posts or pages.⌉[

Creating ads is as easy as creating WordPress posts or pages.

[⌊On the ads management page, you can track your ads views (displays) and clicks.⌉⌊
On the ads management page, you can track your ads views (displays) and clicks.⌉[

On the ads management page, you can track your ads views (displays) and clicks.

[⌊An example of displayed automatic ads or using shortcodes (within the blog post).⌉⌊
An example of displayed automatic ads or using shortcodes (within the blog post)
.⌉[

An example of displayed automatic ads or using shortcodes (within the blog post).

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/wp-adposts` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Use the Settings->WP AdPosts screen to configure the plugin.
 4. Add as many locations as you want, but please do not forget to select ads sizes
    because it is important.
 5. 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.

## 常见问题

  Installation Instructions

 1. Upload the plugin files to the `/wp-content/plugins/wp-adposts` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Use the Settings->WP AdPosts screen to configure the plugin.
 4. Add as many locations as you want, but please do not forget to select ads sizes
    because it is important.
 5. 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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP AdPosts by Kader Bouyakoub」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Kader Bouyakoub ](https://profiles.wordpress.org/bkader/)

[帮助将「WP AdPosts by Kader Bouyakoub」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-adposts)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-adposts/)，查看[SVN仓库](https://plugins.svn.wordpress.org/wp-adposts/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/wp-adposts/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-adposts/)。

## 更新日志

#### 1.3.0

 * It is now possible to display ads within posts content.
 * The php function or shortcode accept now the ad ID in order to display a specific
   ad.
 * Settings page enhanced.

#### 1.2.0

 * The default location meta box was replaced with a custom one.

#### 1.0.1

 * Some input and output sanitizing were added.

#### 1.0.0

 * First plugin commit.

## 额外信息

 *  版本 **1.3.0**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-adposts/)
 * 标签
 * [ads](https://cn.wordpress.org/plugins/tags/ads/)[banner](https://cn.wordpress.org/plugins/tags/banner/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)[WordPress.com](https://cn.wordpress.org/plugins/tags/wordpress-com/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-adposts/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wp-adposts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-adposts/reviews/)

## 贡献者

 *   [ Kader Bouyakoub ](https://profiles.wordpress.org/bkader/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-adposts/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://bit.ly/2FrdpOg)