• Resolved dubaidogfish

    (@dubaidogfish)


    Hello. I am experimenting with 2 columns of numbers in CSV upload that generates pages with URLs such as .com/1-by-2 which may have shortcodes eg {{firstcol}} and {{secondcol}}

    The pages then generate from template to say eg. ‘Your size is {{firstcol}} by {{secondcol}}’ where the shortcodes are replaced by the numbers. This works so far.

    If the number in the first column is in a certain range and results as true, I want to to show a particular paragraph of text and similarly for the second number for particular ranges show different paragraphs. (I then want to add the plot of these two numbers onto a graph shown as an image on that page.)

    Is there a way to say that if the value of {{firstcol}} is greater than X but less than y then show the following text block as PHP in the post template? Will the values be processed in the shortcode output in the post as integers or strings? ie can I query the numerical value as a range? How can I retrieve your shortcode output value to query if it is in range if using php?

    What would be the best way to plot the chart rather than storing thousands of variations of chart plots as images? Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Vytis

    (@bvytis)

    Hi @dubaidogfish,

    From the level of support we can provide it’s a bit too complicated and niche query to answer so we can only recommend checking the plugin’s code and experimenting unless someone from the community already tried achieving something similar and will be able to jump on this thread with their experience.

    Thank you for understanding.

    Thread Starter dubaidogfish

    (@dubaidogfish)

    No problem, think have most of it solved now with wpdatatables and their shortcodes in the csv that will use to create the page content and a MySQL query of the data set doing server side processing for the charts.

    luciamarinescu

    (@luciamarinescu)

    We’re glad to hear you managed to find a solution for this, thank you for sharing it with the community!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use shortcode value for text block’ is closed to new replies.