• Hello,
    I find it strange or even rude that you closed the topic I started for new replies asking for a line of code to add the functionality that all other property extensions I have worked with come standard (status banners). Now that I have invested so much time into your plugin and don’t want to change, I simply want to add a custom class to my status attributes so I can style each status a different color. You give me this idea and don’t tell me how to apply it so when I ask you tell me I need to hire you to do custom work. I have seen other users vote for this feature in your request feature web page.
    You say I can use this:
    apply_filters('wpp::draw_stats::attributes', $property_stats, $property, $args);

    I just want to do something simple.

    <?php if( !empty( $property['status'] ) ): ?>
    <span class="property_status"><?php echo $property['status']; ?></span>
    <?php endif; ?>

    If I could add this and make the result have like 8 characters with no spaces, that would be perfect:

    <?php if( !empty( $property['status'] ) ): ?>
    <span class="property_status <?php echo $property['status']; ?>"><?php echo $property['status']; ?></span>
    <?php endif; ?>

    please don’t shut down this topic, perhaps there is someone out there that can help me. Its not important enough to hire you to do, its just something that I feel should already by an option for your plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jpstudiodesigns

    (@jessicapschultz)

    a better way for me would be to show a class name based on the map marker, can I echo this? I just need the proper names, I’m guessing for show of idea:
    <?php echo $property_map['status']; ?>

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    Hello @jessicapschultz

    I didn’t close that topic or wasn’t going to close it. Probably some moderator did, because I do not have rights to open it again.

    I have asked our developers to help you with your questions, but that should take quite a long time to explain that to you, taking to the point you are not a developer. Because of that, I offered you our services.

    One more time appologise for incomvenience.

    Regards.

    Thread Starter jpstudiodesigns

    (@jessicapschultz)

    Sorry Maria, I guess that some moderator was being rude then because I believe in helping others and if there is no resolution posted then the topic should not be marked as resolved; if the comments were left open, I could share my results. I don’t feel like any of this needs any long explanation, its simply finding the correct terms (which I was hoping you would provide) to show the content that needs to be shown. For those out there that can use this, this is what I came up with:

    <span class="property_status <?php echo substr($property['status'],0,4) ; ?>"><?php echo $property['status']; ?></span>

    I would rather show the slug of the map marker but I don’t know the terms like “$slug” or whatever to show that content so I showed the property status but truncated it to four characters so that it would not have spaces or punctuation. It just so happens to work for my situation and I can now style each status a new color.

    Plugin Contributor MariaKravchenko

    (@mariakravchenko)

    As I know, such code can be used to show attribute’s value
    <?php echo $property['post_content']; ?>

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add class to custom attribute values-NOT Resolved’ is closed to new replies.