Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #841056

    Hi Everyone!

    I inherited a site that was previously hosted on a multi site set up that included some proprietary functionality. I added all the CPTs by using the Custom Post Type UI plugin. However I just realized that there’s some additional metadata in wp_postmeta related to the Partner CPT. I now need to use that data, and I’ve found out how to create a short code to access and display it. However I’m sure at some point I’ll also need to edit that data. Is that something I’d do through Enfold and on which you guys can advise me, or would that be more related to the Custom Post Type UI plugin???

    ON A RELATED NOTE, I found that the short codes I’ve created work well to display this data when a partner/portfolio item is displayed on its own page. However they do not work when used in the Ajax Portfolio Preview Settings, Add Preview Text area. Is there a way to make them work in the Add Preview Text area as well? UPDATE: Answered this one myself: It was working but pulling the post ID from the page with the portfolio grid instead of the actual partner’s page. So I’ll have to use a somewhat expanded version of the shortcode that accepts a post id as an argument in addition to the field name.

    ANOTHER RELATED NOTE: The custom shortcodes above do not work when used in the CPT item’s manual excerpt. I’ve tried everything I’ve found so far in the Enfold forums, but so far nothing has worked. For most of the solutions, the shortcode text no longer appears, but neither does the info from the database. On the chance the problem may be related to the issue I just solved above, I manually entered a city and state into wp_postmeta with the post id of the page with the portfolio grid, but that didn’t even work. So I have to conclude that something is preventing the shortcodes from being processed, or at least being processed properly.

    I look forward to your replies.

    Thanks!

    Scott

    • This topic was modified 7 years, 4 months ago by scotthco.
    #842341

    Hey scotthco,

    I’m sure at some point I’ll also need to edit that data. Is that something I’d do through Enfold and on which you guys can advise me, or would that be more related to the Custom Post Type UI plugin???

    1.) Use the “update_post_meta” function.

    // https://codex.wordpress.org/Function_Reference/update_post_meta

    3.) Please post the shortcode on pastebin.com.

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.