• I’d like to add to my post table a feature

    I’d like to add a link “email for request” here: https://ibb.co/dm0MPXW

    When I click on this email the email has a content like that: https://ibb.co/QNwZj2B

    In my non-WP website the link appears this way:

    Richiesta

    I have a pre-defined object and in “preferenze” is added the code and the name of the apartment

    Each agency (author) has a specific email for request. I have already created a specific field in author edit page to insert this email. How can I set all this in a function?

    • This topic was modified 2 years, 8 months ago by bcworkz. Reason: annonymized email address in mailto link

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    You’d place a HTML link just like the one in your non-WP site in the list table’s cell. Concatenate it to the other content that’s already there.

    How did you add the additional list table columns to begin with? A code snippet would be informative.

    Not my concern, but is that really a good place for an email link? Only admins, editors, and authors see this page. It’s not where many WP users would expect to see a clickable mailto: link. What is the purpose of this link? Who is it for?

    List tables already have a place for action links. They appear when you hover over one of the items in the list. That would be the expected place for a link related to a post.

    Thread Starter sacconi

    (@sacconi)

    It is only for internale purpose, but very usefull. If a customer is interested i.e. in the apartment 12350, I go to the post table, and if for this apartment I cant check myself availibility somewhere, I send en email to the agency that manages it, so I send a pre-compiled email where I can have a pre-compiled object like “request customer”..and I add here the name of the customer manually. And in the body I have a pre-defined request message where I write a sery of things, such as, period, n. of people, if pets…and so on, like this

    Buongiorno,

    Ho ricevuto la richiesta seguente:
    nome cliente:
    n. delle persone:
    date:
    animali:/
    preferenze: IT-LIG-04989 Res. Acacie – D

    grazie

    Cordiali Saluti

    Andrea Sacconi
    tel:+39/02.320.620.049
    fax:+39/02.700.443.023
    http://www.sacconicase.it

    “IT-LIG-04989 Res. Acacie – D” is added authomatically by the system, it’s the ID and the name of the apartment

    I havent written this code, so I should try to “spy” what I have in my own website, in order to copy the effect..

    Moderator bcworkz

    (@bcworkz)

    So it primarily for your own use then? Since you’d know where to find such a link I guess it can go anywhere that works for you.

    All the same, the action links that appear on hover would be the WordPress Way of showing links. The Row Action Links section of documentation for modifying admin list tables goes over adding links the WordPress Way.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘“email for request” feature’ is closed to new replies.