BBPress Margo Bowie : Replies Created

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 11 total)
  • Author
    Posts
  • in reply to: Export of Custom Fields #482901
    Margo Bowie
    Participant

    worked!! Thank you!

    in reply to: Export of Custom Fields #482679
    Margo Bowie
    Participant

    <i m g src=”http://tribute-kiosk-software.com/demo/wp-content/uploads/Emblem_ARMY.png&#8221; alt=”Branch” id=”branchlogo”>

    in reply to: Export of Custom Fields #482678
    Margo Bowie
    Participant
    Branch
    
    in reply to: Export of Custom Fields #482676
    Margo Bowie
    Participant

    ok thank you! The value(s) are not being imported for some reason…

    for instance: Branch
    should be the value of the Branch Logo

    Attachments:
    You must be logged in to view attached files.
    in reply to: Export of Custom Fields #482670
    Margo Bowie
    Participant

    line 177 is this
    cnEntry_Action::meta(

    in reply to: Export of Custom Fields #482669
    Margo Bowie
    Participant

    I got this error…. Your PHP code changes were rolled back due to an error on line 117 of file wp-content/themes/divi-child/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘cnEntry_Action’ (T_STRING)

    this is my code…

    // Register the custom fields CSV Import mapping options and processing callback.
    add_filter( 'cncsv_map_import_fields', 'cncsv_header_name' );
    add_action( 'cncsv_import_fields', 'cncsv_process_import', 10, 3 );
    
    function cncsv_header_name( $fields ) {
    
        // The field_id should match exactly the field id used when registering the custom field.
        $fields['Branch Logo'] = 'Branch Logo';
        $fields['Marker Location'] = 'Marker Location';
    
        return $fields;
    }
    
    function cncsv_process_import( $id, $row, $entry ) {
    
        // The field_id should match exactly the field id used when registering the custom field.
        $data = $entry->arrayPull( $row, 'field_id', '' );
            $data = cnFormatting::maybeJSONdecode( stripslashes( $data ) )
    
        cnEntry_Action::meta(
            'update',
            $id,
            array(
                array(
                    'key'   => 'Branch Logo', // The field_id should match exactly the field id used when registering the custom field.
                    'value' => $data
                ),
            )
        );
    
        cnEntry_Action::meta(
            'update',
            $id,
            array(
                array(
                    'key'   => 'Marker Location', // The field_id should match exactly the field id used when registering the custom field.
                    'value' => $data
                ),
            )
        );
    }
    
    in reply to: Export of Custom Fields #482666
    Margo Bowie
    Participant

    using Connections : CSV Import

    in reply to: Export of Custom Fields #482664
    Margo Bowie
    Participant

    This is great!!! Almost works… the export works nice, but on import, there is no selection option for the Branch Logo and Marker Location (it defaults to Do Not Import, and is not available in the dropdown selection)…easy fix?

    in reply to: Connections: Edit Entry dropdowns not working #480735
    Margo Bowie
    Participant

    Thanks for the reply Steven. Love these plugins and addons.

    in reply to: Connections: Edit Entry dropdowns not working #480734
    Margo Bowie
    Participant

    OK, i found it…
    it was a conflict with the plugin “One Click SSL”….not a big deal either because you don’t need the plugin active after you run through the SSL fix.

    Hope this helps someone.

Viewing 10 posts - 1 through 10 (of 11 total)