Forum Replies Created

Viewing 15 posts - 241 through 255 (of 2,964 total)
  • Author
    Posts
  • in reply to: Shortocde Issues #9188
    Steve
    Keymaster

    This is the way WordPress works. It has nothing to do with Piklist. If you want WordPress to process your shortcodes then you need to output with the filter. It’s the WordPress way

    in reply to: Shortocde Issues #9186
    Steve
    Keymaster

    If you want WordPress to render your shortcode on the front of your site, you need to use this WordPress filter:
    https://developer.wordpress.org/reference/hooks/the_content/

    Something like this should work:

    
    $speaker_request = get_post_meta($post->ID, 'your-custom-field-name');
    echo apply_filters('the_content', $speaker_request);
    

    The standard WordPress editor automatically calls this filter, but you need to do it manually,

    This will not fix the shortcode not rendering properly in the admin, but it will work on the frontend.

    in reply to: Shortocde Issues #9185
    Steve
    Keymaster

    How are you outputting the shortcode in the front of your site?

    in reply to: Piklist warnings (when using workflow) #9177
    Steve
    Keymaster

    marking resolved.

    in reply to: Saving additional images as attachments not working #9175
    Steve
    Keymaster

    To get $attachment_id you would need to write some JS to detect the id of the image.

    Or I guess you can also save the image to the post_meta table and get the id there. You could run a filter on save_post as 9999, and pull the meta after it’s saved. Totally untested… 😉

    in reply to: Saving additional images as attachments not working #9173
    Steve
    Keymaster

    Everything about Piklist is done the WordPress way including retrieving data. You can use the native WordPress function get_post_meta to retrieve the attachment information.

    As for matching the WP featured image field name… if you are replacing the default WordPress field, then you need to use the same field name.

    in reply to: Saving additional images as attachments not working #9171
    Steve
    Keymaster

    There is no place in the default WordPress post table to save attachment data.

    in reply to: Piklist warnings (when using workflow) #9168
    Steve
    Keymaster

    This will be fixed in the next version of Piklist. Pull request was accepted today:
    https://github.com/piklist/piklist/pull/110#issuecomment-407831586

    in reply to: Saving additional images as attachments not working #9167
    Steve
    Keymaster

    Yup… You need to remove the default featured image metabox or else you are duplicating the field.

    This doc explains how to remove it: https://piklist.github.io/docs/faq/fields-not-saving/

    Just replace custom-fields with thumbnail and post with your CPT.

    in reply to: Shortocde Issues #9165
    Steve
    Keymaster

    Can you post the code thats creating the salesforce shortcode? A good place to post is: https://gist.github.com/

    in reply to: Relation fields #9159
    Steve
    Keymaster

    If you look in the tutorial towards the end it says this:
    “So if you look at the book’s meta, you won’t see anything added about the chapter. Why? Because it’s not designed to put anything there. Look at the chapter’s meta. You should find it there. For this reason, you don’t need to specify a field, as relate fields are a special type which store in their own way. In short, the owned object stores the meta.”

    You need to use 'relate' => 'belongs' and 'relate' => 'has'

    in reply to: Shortocde Issues #9158
    Steve
    Keymaster

    @redsoxfan99– Welcome to the Piklist community! We’re here to help.

    I’m not clear on the second screenshot. Is it partially rendering the shortcode?

    If you place the shortcode in the TEXT tab, instead of VISUAL, does it work better?

    in reply to: Disable post meta revisions #9157
    Steve
    Keymaster

    I’ll look into the original revision ticket.

    However, if you want to disable on a per post basis you can do something like this (untested):

    
    add_action( 'wp_head', 'remove_my_action' );
    function remove_my_action(){
            global $post;
    
           if($post->ID == $id_I_want_to_disable) {
    
              remove_action( 'save_post', array( 'piklist_revision', 'save_post' ), -1 );
    
           }
    }
    
    in reply to: Saving additional images as attachments not working #9156
    Steve
    Keymaster

    The featured image demo is the way to go. Not sure why all three images are the same. I just tested and it works fine.

    Does the featured image box work in the demos?

    in reply to: admin-workflow.php on line 82 #9155
    Steve
    Keymaster

    A pull request has been submitted for this issue:
    https://github.com/piklist/piklist/pull/110

Viewing 15 posts - 241 through 255 (of 2,964 total)