site-ask PHP question, how to output the content of the plugin in WordPress theme

Source: Internet
Author: User
Keywords Site plugin php wordpress plugin WordPress
Site Plugin phpwordpress plugin WordPress

Show contribute meta data function Contribute_metadata ($content) {if (Is_single ()) {                        $DXC _options = get_option (' dx-contribute-options ');                        $pid = get_the_id ();                        $metas = Get_post_meta ($pid, ' _dx_contribute ', true); if ($DXC _options[' meta-on ') = ' on ' && $metas) {$avatar = Get_avatar ($metas [' Email                                '], 25); $url = ($metas [' site '] = = ' true ')?                                ": $metas [' site '];                                $user = $metas [' user ']; $site = ($url)?                                '. $user. ': ' $user. '; $style = ''; $meta _code = '. $avatar. '.                                $site. ' submitted to '. Get_the_time (' y-m-d h:i:s '). ';                                if ($DXC _options[' Metapo ']== ' head ') {$content = $style. $meta _code. $content;                                                } else $content. = $style. $meta _code;        }} return $content; }

This paragraph is the content inside the plugin, he will automatically re-export the article content in the article page
But I would like to specify the location on the homepage output $user content how to do it

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.