wordpress-plugin

Facebook ignoring OG image on first share

眉间皱痕 提交于 2019-11-26 17:57:09
I'm developing a WordPress site and using the yoast seo plugin to generate an og image on a dynamic page. However, I think this is not related to that. The og image link appears perfectly, but if I click on the share button, no image is included unless I have already clicked on the share button before, or used the facebook developer tool to scrape the page first. Is this a facebook issue, or a server issue perhaps? You can avoid this by either getting your content “pre-scraped” by triggering a scrape via API as soon as you publish it, or by specifying the image dimensions via OG meta tags as

Enable CORS on JSON API Wordpress

元气小坏坏 提交于 2019-11-26 16:29:14
问题 I have this wordpress site with a plugin called JSON API. This plugin provides a JSON format for the content that is in the wordpress. I was able to enable CORS on the wordpress by adding header("Access-Control-Allow-Origin: *"); on the php header. But when I tried the url that the JSON API plugin provides the CORS does not work anymore. This is the wordpress site were I'm doing the tests... I used the test cors website to check if it was working and it is... http://kiwa-app.loading.net/ But

Wordpress REST API (wp-api) 404 Error

三世轮回 提交于 2019-11-26 15:53:04
问题 I have been using the Wordpress REST plugin WP-API for months now while developing locally with XAMPP. I recently migrated my site to an EC2 instance and everything is working fine except I now get a 404 with the following message whenever I try to access any endpoint on the API: The requested URL /wordpress/wp-json/ was not found on this server Pretty permalinks are enabled with the following structure http://.../wordpress/sample-post/ which works fine when navigating to a specific post in

How to keep the menu state on page reload

最后都变了- 提交于 2019-11-26 07:48:25
问题 I have the following code snippet and wanted to know if there is a possibility to update it achieving this menu behaviour: Step 1. On mouse hover Link 1 ----> it will be translated 1.5em to the right (already set); Step 2. On Link 1 click ----> the menu button will remain fixed in place at the already translated position (done, special thanks to @guest271314) on the page reload too, until a new menu button is clicked (not set yet) and another page is loaded . note: next/prev buttons code

Facebook ignoring OG image on first share

和自甴很熟 提交于 2019-11-26 06:08:03
问题 I\'m developing a WordPress site and using the yoast seo plugin to generate an og image on a dynamic page. However, I think this is not related to that. The og image link appears perfectly, but if I click on the share button, no image is included unless I have already clicked on the share button before, or used the facebook developer tool to scrape the page first. Is this a facebook issue, or a server issue perhaps? 回答1: You can avoid this by either getting your content “pre-scraped” by