Support » Plugin: Business Directory Plugin » How can I show he content field only?

Viewing 15 replies - 1 through 15 (of 39 total)
  • How can I show the other fields separetely too, I forgot to ask about that, sorry.

    Plugin Author businessdirectoryplugin

    (@businessdirectoryplugin)

    Hi spikespiegel,

    That’s something I’ll have to ask my developer. He’s defending this thesis this week so he’s unavailable at the moment. I’ll have to get a response from him next week when he returns.

    Ok, I’ll be waiting.

    Plugin Author businessdirectoryplugin

    (@businessdirectoryplugin)

    You can use this function here:

    echo wpbdp_render_listing($listing, 'excerpt');

    where $listing is the post object that represents the listing being shown. The $listing variable can be omitted but in that case the global $post variable should be set to a WPBDP listing or the function will return an empty string. The function is defined in api/api.php.

    That example above would display only the excerpt, for example.

    how can I display title, short description and description separetely? Wait, you already said how to display description, what about the other ones?

    Plugin Author businessdirectoryplugin

    (@businessdirectoryplugin)

    Use the strings “title”, “excerpt” (short description) and “description” in the above code separately for those fields.

    I tried using:

    echo wpbdp_render_listing($listing, ‘title’);
    echo wpbdp_render_listing($listing, ‘excerpt’);
    echo wpbdp_render_listing($listing, ‘description’);

    and got a weird result, as if the listing was in a mirror, didn’t get the result I need, though.

    Plugin Author businessdirectoryplugin

    (@businessdirectoryplugin)

    Can you please be more specific? For EACH call, what happened? Show the result you got, plus what you expected.

    Are you online? I uploaded the site to the server, but I can’t stop the service, I need you tell me when you’re online, so I make and show you the changes.

    Thx for the support, I’ll be waiting for your reply.

    here goes the link to a single listing at my site
    http://akecheta.com/free-blogger-templates/469/abstractline/
    you can see what happened after making the changes with the following code:

    echo wpbdp_render_listing($listing, 'title');
    echo wpbdp_render_listing($listing, 'excerpt');
    echo wpbdp_render_listing($listing, 'description');

    in the file businessdirectory-listing.tpl.php

    Plugin Author businessdirectoryplugin

    (@businessdirectoryplugin)

    I can’t tell from your link what the output fields are in that page. Can you surround them with some text to say “Start title” and “End title”?

    I did it like this:

    echo "start title";
    echo wpbdp_render_listing($listing, 'title');
    echo "end title";
    
    echo  "start excerpt";
    echo wpbdp_render_listing($listing, 'excerpt');
    echo  "end excerpt";
    
    echo "start description";
    echo wpbdp_render_listing($listing, 'description');
    echo "end description";

    However, it only shows the “start title” text.
    Take a look at the page again

    I made some changes, but revert back, please visit the page now.

    Plugin Author businessdirectoryplugin

    (@businessdirectoryplugin)

    I only see the “start title” output, the rest of it never shows.

    What exactly are the changes you’ve made to the template?

    deleted $display_fields and made these changes

    echo "start title";
    echo wpbdp_render_listing($listing, 'title');
    echo "end title";
    
    echo  "start excerpt";
    echo wpbdp_render_listing($listing, 'excerpt');
    echo  "end excerpt";
    
    echo "start description";
    echo wpbdp_render_listing($listing, 'description');
    echo "end description";

Viewing 15 replies - 1 through 15 (of 39 total)
  • The topic ‘How can I show he content field only?’ is closed to new replies.