[wordpress插件] Annonces通告

wordpress 插件 文章 2020-02-18 18:30 499 0 全屏看文

AI助手支持GPT4.0

评分
54
描述

Annonces display announces posted in your WordPress interface on a Google map.

Annonces显示宣布在Google地图上的WordPress界面中发布。

Shortcodes

简码

Display the Google Map in a page with the shortcode :

在带有简码的页面中显示Google地图:

[annonces]

  [匿名]

Filters

过滤器

Change metadatas in infowindow of map

在地图的信息窗口中更改元数据

add_filter('set_marker_data', 'mytheme_set_marker_data', 10, 2);

  add_filter('set_marker_data','mytheme_set_marker_data',10,2);

function mytheme_set_marker_data($microdata, $annonce_id) {    

函数mytheme_set_marker_data($ microdata,$ annonce_id){    

// datas    

//数据    

return $microdata;

返回$ microdata;

}

}

Change title of filter bloc over the map

在地图上更改过滤器组的标题

add_filter('bloc_filter_title', 'mytheme_set_filter_title', 10, 1);

  add_filter('bloc_filter_title','mytheme_set_filter_title',10,1);

function mytheme_set_filter_title($filter_title) {    

函数mytheme_set_filter_title($ filter_title){    

// datas    

//数据    

return $filter_title;

返回$ filter_title;

}

}

Template

模板

You can create single-announces.php in your child theme to edit the single page of announce : code for the single-annouce.php

single-announce.php“ rel =” nofollow“> single-annouce.php的代码

ACF

ACF

    • Width the ACF plugin, you can create or import fields to personalize your announces.
    • 扩展ACF插件的宽度,您可以创建或导入字段以个性化您的公告。

    • Edit the templates as explain above.
    • 按照上面的说明编辑模板。

    • You will obtain custom announces which will suit your project
    • 您将获得适合您项目的自定义公告

安装步骤

    • In your backadmin, go to \”Plugins\” pannel
    • 在您的backadmin中,转到“插件”面板

    • Install the plugin Annonces
    • 安装插件Annonces

    • Install required plugin : ACF Free and update it to version 5.x.x
    • 安装必需的插件:ACF Free并将其更新到版本5.x.x

    • Activate plugins Annonces and ACF
    • 激活插件Annonces和ACF

下载地址
https://downloads.wordpress.org/plugin/annonces.2.1.1.zip
-EOF-

AI助手支持GPT4.0