• Hi.

    I want to create a query screen on a wp based website.

    It’s gonna be like;

    Enter Serial Number:
    Search (Button)

    So when people enter the serial number, it will go to the report which is related with that serial number.

    At first, I thought I can solve this with a plugin. But I couldn’t find one for this. Anyone knows any?

    Second, I thought I can create something like this; I will use serial numbers in report names. For example a serial number is 12345. The report name is Report12345.

    When someone enters the serial number above and clicks the button below; the button will direct him to a link like; www.domain.com/images/pdf/Report('$inputvalue')

    I need some advices about this system.

    Any ideas how can I create one, and the most important, which way should I follow?

    Thank you very much.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Available plugins are good at solving general needs like “I need a photo gallery”. Specific needs like “search for reports in an existing DB named xy-foobar by column ab-snafu” are unlikely to be met by existing plugins because exact information needs to be known ahead of time in order to program the task.

    If you can conform your data to an existing plugin, then you may have something. For example, if the reports were WP pages and their title included the serial number, a default WP search will be able to locate and display the report.

    If you cannot conform your data to a plugin, you are looking at the need for custom coding. Even then, the closer you can conform your data to how WP manages data, the easier it will be to code up a solution. For example, if reports were a custom post type and the serial number is in a custom meta field, you could adapt a theme page template to include a search box and have the template query for the report with the associated meta field and display the resulting report content.

    If you are stuck with the data as-is and it cannot be conformed, all is not lost. You’ll just have more custom work to do. How you would approach this depends on the specifics of how the data is organized.

Viewing 1 replies (of 1 total)
  • The topic ‘Query screen on a wp based site’ is closed to new replies.