Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7432987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:32:39+00:00 2026-05-29T09:32:39+00:00

I am working on integrating two wordpress plugins. What I am trying to do

  • 0

I am working on integrating two wordpress plugins. What I am trying to do is to add this code<?php DisplayStars(get_the_ID()); ?> into a function of another plugin. I tried $html = '<?php DisplayStars(get_the_ID()); ?>';, but php shows errors. Thanks for your help.

function wpbusdirman_post_excerpt($count)
{   
    $wpbusdirman_gpid=wpbusdirman_gpid();
    $wpbusdirman_permalink=get_permalink($wpbusdirman_gpid);
    $html = '';
    $html .= '<div id="wpbdmlistings"';
    $isasticky = get_post_meta(get_the_ID(),'sticky');
    if(isset($isasticky) && !empty($isasticky))
    {
        $isasticky=$isasticky[0];
    }
    if(isset($isasticky) && ($isasticky == 'approved'))
    {
        if($count&1)
        {
            $html .= ' class="wpbdmoddsticky"';
        }
        else 
        {
            $html .= ' class="wpbdmevensticky"';
        }
    }
    else 
    {
        if($count&1)
        {
            $html .= ' class="wpbdmodd"';
        }
        else 
        {
            $html .= ' class="wpbdmeven"';
        }
    }
    $html .='><div class="listingthumbnail">' . wpbusdirman_display_the_thumbnail() . '</div><div class="listingdetails">';
    $html .= wpbusdirman_display_the_listing_fields();
    $html .= wpbusdirman_view_edit_delete_listing_button();
    $html .= '</div><div style="clear:both;"></div></div>';
    return $html;
} 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:32:40+00:00Added an answer on May 29, 2026 at 9:32 am

    The code base you’re working in is php. The code you’re adding is php. That means, you don’t need to add it inside the html, but simply call the function. (You may need an include at the top of the file for the function to work if it’s not in this file)

    $html .= DisplayStars(get_the_ID());
    

    should be all you need in the call to add the text to the html.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on integrating Ben Gottlieb's Twitter-OAuth-iPhone code into my cocos2d 0.99.5 project using
I'm working on integrating an HTML template slice into a SiteFinity theme and am
I am working on integrating affiliate sales into few existing sites. We are using
I'm thinking of integrating a chat inside an already written and working php application.
So, I'm working on integrating Fedex's Address Validation into a site I'm working on.
I'm a C/C++/Java programmer working with JavaScript. I'm trying to write a function that
Trying to choose a PHP open source CMS into which I will integrate an
I am working on integrating Facebook into my iOS app and am wondering how
We are working on integrating two different applications that run simultaneously and share data.
Im working on integrating db4o into my project and I have some questions. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.