Okay
  Public Ticket #1788966
Shortcodes in html
Closed

Comments

  • Shajad Miah started the conversation

    Hi

    Please see attached Word document to see my original question I emailed and the response from Isidora.

    Also attached is a jpg of what i am trying to achieve. This was done on a local server with Chartjs and javascript/jquery, with the chart rendered via sql queries to MYSQL. I am now trying to replicate this on Wordpress and host on Cpanel. I have come across your plugin and found that i can have greater control over my charts, it is responsive and would save me from a lot of coding, which is great. However, I am unable to work out how I would be able to put a shortcode of a clock on top of a shortcode of wpdatatables chart to get the results of the attached image.

    Is there any way to insert the chart into a page without shortcodes so I get control over placements? As I said I am still quite new to web development so any advice would be welcome. 

    Thanks

    Shajad

  •  471
    Isidora replied

    Hi Shajad,
    Thank you for your interest in wpdatatables.

    Unfortunately that is not possible with built in features of plugin. What you can do is to move that clock with custom CSS of JS to be above the Donat chart and place him how you need. Inserting charts on page are only possible with shortcodes.

    Yes you can modify background of the chart through chart wizard. You can take a look in our documentation on this link.

    If you need some custom for layout of the chart solution you can check in our documentation about wpDataCharts callbacks

    Every chart exposes several options that customize its look and feel. Charts usually support custom options appropriate to that visualization. wpdatachart callbacks  allows adding options that are available in Google Charts APIHighcharts API and Chart.js API

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • Shajad Miah replied

    Hi thanks for getting back to me.

    It looks like I can get past the placement issue by sticking the chart and clock in separate iframes and overlaying them on top of each other. However is it possible to place wpdatatables shortcodes into an external php file and render them within in a page? Right now I can only get shortcodes to work by pasting them in WordPress pages directly.

    Also is there a limit to how many charts I can create with wpdatatables?

  •  471
    Isidora replied

    Hi Shajad,

    If you want to use a shortcode from within a template instead of with the content of a Post/Page, then you can invoke it with a special function:

    <?php echo do_shortcode("[shortcode]"); ?>

    No, there is no limit how many charts you can make in wpdatatables.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables