• Is it possible to use one of the shortcodes to put fields into blog posts – I’ve tried using [pdb_single], but not sur if this is correct, and I don’t underatand what to put after this if it is correct.

    For example, I have created fields that are strings of information, which would be great to output as a paragraph in a blog post, but not in a table.

    Thank you,

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    The [pdb_single] shortcode has a template you can use called “single-value” that you can use to display a value from the database inline. The “fields” attribute is used to tell it which field’s value to display.

    It does require that you have some way to set the record ID you want to get the data from, and that can be tricky unless you just need a static value. If the URL contains the record ID, it will be automatic, otherwise, you’ll need to provide the record id to the shortcode.

    For example:

    [pdb_single template=single-value fields=city record_id=135]

    That shows how to use a static value for the record id.

Viewing 1 replies (of 1 total)
  • The topic ‘Pull out field into a blog post’ is closed to new replies.