你收到gogole adsense違反通知了嗎?

最近看到這篇文章:

Did You Receive A Policy Violation Warning?

帳戶被停或廣告被停相關問答:

AdSense account disabled for invalid activity

求助中心:

adsense help center

做個筆記,若廣告被停,可到以下網址試試。

AdSense policy troubleshooter

wordpress:ajax load more plugin裡的幾個可用變數!

在ajax load more plugin裡面的repeater templates,可以呼叫以下幾個變數:

$alm_current – Returns the current item number in the current Ajax Load More loop and will reset to zero with every ‘Load More’ action.. ‘echo $alm_current;’

$alm_page – Returns the current page number. ‘echo $alm_page;’

$alm_item – Returns the current item number within your loop. ‘echo $alm_item;’

$alm_found_posts – Returns the total number of posts found within the entire WordPress query. ‘echo $alm_found_posts;’

這在客製化時派得上用場。

參考:

https://tw.wordpress.org/plugins/ajax-load-more/

wordpress:獲取某篇文章的所有分類,並轉成逗號間隔的字串!

在single.php(單篇文章中)加入以下程式碼:

參考文章:https://developer.wordpress.org/reference/functions/get_the_category/