Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello!
    From the heart I pray for help! I’m theme My Passion. tell me where and what to write so I with Nelio External Featured Image, share in facebook post with image. Please you very much! I am a novice should my code without errors.

    I write in external-featured-image / main.php

    <? Php
    / *
    * Plugin Name: Featured Image External Link from Custom Field in Page
    * Plugin URI: http://www.prochetitova.sitefree.co
    Description: adds an external link to the ‘featured image’ in a static page; link url has to be in custom field with the key ‘ExternalUrl’.
    * Version: 1.2.0
    * Author: Lyubomira Popova
    * Author URI: http://wordpress.org/support/profile/alchymyth
    * License: GPL2
    * /

    This program is free software; you can redistribute it and / or modify
    it under the terms of the GNU General Public License, version 2, as
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    * /

    add_filter (‘post_thumbnail_html’, ‘add_external_link_on_page_post_thumbnail’, 10);

    function add_external_link_on_page_post_thumbnail ($ html) {
    if (is_page ()) {
    global $ post;
    $ Name = get_post_meta ($ post-> ID, ‘ExternalUrl’, true);
    if ($ name) {
    $ Html = ”. $ Html. ”;
    }
    }
    return $ html;
    }
    ?>

    and gives me – Parse error: syntax error, unexpected T_STRING in /home/u783847088/public_html/wp-content/plugins/external-featured-image/main.php on line 12

    https://wordpress.org/plugins/external-featured-image/

    Thread Starter lyubomira

    (@lyubomira)

    I need a external-featured-image share post with pictures in facebook.
    Plsss!

    Thread Starter lyubomira

    (@lyubomira)

    I Wrote in external-featured-image / main.php

    <? Php
    / *
    * Plugin Name: Featured Image External Link from Custom Field in Page
    * Plugin URI: http://www.prochetitova.sitefree.co
    Description: adds an external link to the ‘featured image’ in a static page; link url has to be in custom field with the key ‘ExternalUrl’.
    * Version: 1.2.0
    * Author: Lyubomira Popova
    * Author URI: http://wordpress.org/support/profile/alchymyth
    * License: GPL2
    * /

    This program is free software; you can redistribute it and / or modify
    it under the terms of the GNU General Public License, version 2, as
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.

    * /

    add_filter (‘post_thumbnail_html’, ‘add_external_link_on_page_post_thumbnail’, 10);

    function add_external_link_on_page_post_thumbnail ($ html) {
    if (is_page ()) {
    global $ post;
    $ Name = get_post_meta ($ post-> ID, ‘ExternalUrl’, true);
    if ($ name) {
    $ Html = ‘‘. $ Html. ‘‘;
    }
    }
    return $ html;
    }
    ?>

    and gives me – Parse error: syntax error, unexpected T_STRING in /home/u783847088/public_html/wp-content/plugins/external-featured-image/main.php on line 12

    PLSSSS!!!HELP me!!!

    Analyzing your site

    Oops. Something went wrong. Please try again.

    The most likely reason is that you are using a WordPress cache plugin. If this is the case, please follow the plugin’s instructions to clear the cache and then try again.

Viewing 5 replies - 1 through 5 (of 5 total)