Simple Testimonials
[resolved] Need to add extra text field (2 posts)

  1. livebillal
    Posted 2 years ago #

    I want to add an extra text field to the plugin. There is one text & one textarea field. Can anyone help me? Urgent!


  2. PIXELovely
    Plugin Author

    Posted 2 years ago #

    If you know basic PHP, this is very easy to do. Open the pixelovely_testimonial.php file. Find the array variable $optionsForPIXELovelyTestimonials

    You will need to add a nested array similar to the others already in this array.

    You'll notice that the text field is generated thusly:

    'name' => 'Attribution',
    'type' => 'text',
    'optionname' => 'post_title',
    'description' => 'A name, initials, title, nickname or other handle to identify who is being quoted.')

    You can make a copy of this and add your open name and option name. You can then access this meta data using the normal wordpress Meta Data functions. The meta key will be the value for "optionname" that you specify.

    Be aware that each time you update the plugin, your changes will be overwritten.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic