Parse staff overview boxes

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13870
    schercka
    Member

    I only have email and phone number information for staff members, so I’ve disabled clicking through to more info. Works good and looks good.

    However I would like that email links are clickable and linebreaks are used on the overview page. Right now email links aren’t clickable and the phonenumber comes directly after email, even though I have made a line break in the source. I think it’s not being ‘parsed’?

    Anyway to make this happen simply?

    #13892
    Raghavendra
    Moderator

    The way to create email links is detailed below –

    http://www.rapidtables.com/web/html/mailto.htm

    with an example to try out here –

    http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_link_mailto

    Can you pls check if the above works for you? Are you adding these links in the content for the staff and displaying them as part of summary?

    #13898
    schercka
    Member

    hehehe I know how to add a mail-link, that’s not the problem. ๐Ÿ™‚

    See screenshot, its not parsing the HTML from main content before displaying it. Or at least it’s stripping all HTML before displaying it…

    #13901
    Raghavendra
    Moderator

    Ok – I get the issue now ๐Ÿ™‚ Can you pls set

    $show_content = true;
    

    at line number 9 in loop-staff.php file and that should help display the email right. My guess is that you are ok with displaying the complete content for all staff members.

    Getting the excerpt to display HTML is a tricky business in WordPress.

    http://wordpress.stackexchange.com/questions/141125/allow-html-in-excerpt

    #13907
    schercka
    Member

    Perfect, thats exactly what I wanted. ๐Ÿ™‚

    #13909
    Raghavendra
    Moderator

    Great. Luckily we had the option in place.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Parse staff overview boxes’ is closed to new replies.