• Resolved robmcp

    (@robmcp)


    I followed your excellent instruction on adding a custom field.
    Company Name
    in functions.php

      $config['company'] = [
            'label' => __('Company Name', 'your_theme_domain'),
            'placeholder' => __('Company Name', 'your_theme_domain'),
            'required' => true,
            'type' => 'text',
        ];

    It appears nicely on the review form, what does not happen is that when I approve the review I see this.
    In the name field is the name I input then next to it is the custom field placeholder I created so.
    “This is my name {{ company }}”
    it’s in the add filter for the correct sort / postioning order. It just won’t appear on the review.
    I have obviously missed something simple but cannot see what.
    Can you suggest anything?
    Thanks, R.

    • This topic was modified 4 years, 1 month ago by robmcp.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Adding custom fields is not supported. If you would like to do it on your own, the pastebin link provides the basic examples that you need: https://pastebin.com/4fvKErcp

    Thread Starter robmcp

    (@robmcp)

    Thanks, I did read that first, and got my custom field displaying ok on the form and taking input.
    What I am stuck with is seeing that input when I approve the review for view on a page. Missing something will give it another re-read. I just see the {{company}} placeholder showing on the review front end. 🙁

    Thread Starter robmcp

    (@robmcp)

    Excellent! I now have it working, BUT…

    One teeny issue (there’s always one)

    I got this working but I need a space/ C/R. In visible Approved reviews I now see this

    Joe BlogsRolls Royce

    Name is displayed and the company name ( my custom field ) but NO space between them or carriage return (preferrable)
    Any suggestions?

    Thread Starter robmcp

    (@robmcp)

    I’ve added 2% spacing to the custom CSS field but would like a carriage return if at all possible.

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

The topic ‘Adding a custom field issue’ is closed to new replies.