• Resolved Joy

    (@joyously)


    Can you put a call to do_shortcode() for the content of the table entries?
    I tried using a shortcode and it doesn’t expand it. That would make it really useful for using with other plugins.
    Also, does your code have any filters or actions that my code could use to (slightly) modify the results? For instance, on the sort or on the query or after getting the data?

    http://wordpress.org/extend/plugins/custom-tables/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Joy

    (@joyously)

    I should amend what I said…
    I put a shortcode for another plugin in a table cell by itself and it was expanded.
    I put the same shortcode in the overlay setup and used a table field as a parameter to the shortcode. The field was expanded, but the other plugin’s shortcode was not expanded. I want to be able to use shortcodes with field values as parameters.

    Plugin Author Stefan M.

    (@stefan-m-1)

    you can within my plugin. Only put in the {field} where you need them. It get automatically replaced.

    Or make me same “draft” of what you wanna do with a picture aso. that I understand what you want.

    Regards

    Thread Starter Joy

    (@joyously)

    I just upgraded to version 2.0.
    Do you have any filters in the code?
    The shortcode in the overlay is not expanded. I put
    [myshortcode class={field1}]
    and I get
    [myshortcode class=”Field 1 text”]
    If you call do_shortcode() on the overlay, my shortcode would be expanded.

    Plugin Author Stefan M.

    (@stefan-m-1)

    The filter for the overlay is called “wct_overlay”.

    You can add new filters for this filter with:

    add_filter(“wct_overlay”,”mynewfilter”);

    function mynewfilter($content) {
    //change things
    return $content;
    }

    Plugin Author Stefan M.

    (@stefan-m-1)

    overlay shortcode has been fixed.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: custom tables] not expanding shortcode’ is closed to new replies.