Support

Account

Home Forums Backend Issues (wp-admin) issues importing content from Salesforce Reply To: issues importing content from Salesforce

  • When a new post is created doing the sync, what happens?

    First round is that it creates a draft, which is normal for the plugin.

    When an existing post is updated and fields that did not have values are populated, what happens?

    I can see the new text when viewing the post in the back end, but it does not become visible on the front-end until manually clicking publish.

    When an existing post is updated and fields that did not have values are populated, what happens?

    Same as above.

    What type of fields are they?

    Text and text area. Not sub-fields.

    Just did another test… a post listed as being published:
    https://sanktoberholz.de/wp-content/uploads/2021/09/Screen-Shot-2021-09-06-at-4.24.39-PM.png

    And yet isn’t visible via post query until I hit Update again. Here’s the post query that I’m using, which shows a meta query for displaying only those that have been marked as a specific category (in Salesforce, not a WP category) and a checkbox for whether to make the post visible. (Its for a rudimentary inventory management process.)

    
    			<?php
    				$args = array( 'posts_per_page' => -1,  'post_type' => 'assets',
    
    				'meta_query'	=> array(
    						'relation'		=> 'AND',
    						array(
    							'key'		=> 'area',
    							'value'		=> '["MITTE"]',
    							'compare'	=> '='
    						),
    						array(
    							'key'		=> 'show_on_website',
    							'value'		=> 1,
    							'compare'	=> '='
    						)
    					)
    				);
    
    				$myposts = get_posts( $args );
    
    				if($myposts):
    
    				foreach ( $myposts as $post ) : setup_postdata( $post );
    
     			?>