• Resolved lyubomira

    (@lyubomira)


    Hello There!
    From the heart I pray for help! I’m themes dynamic-news-life. 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.

Viewing 1 replies (of 1 total)
  • 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

Viewing 1 replies (of 1 total)

The topic ‘Nelio External Featured Image!’ is closed to new replies.