• Resolved orshvartz

    (@orshvartz)


    hey
    on my website when a vendor add article and i approve it – the article not showing in the article tab(attached link with example)

    I tried shutting all plugins and still doesnt work
    can any1 help?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Well, I am not very sure how you have enabled this “Articles” tab for store pages.

    But this code is different for all themes. As you are using “My Listing” theme so your code will be this –

    add_action( 'wcfmmp_before_store_article', function( $store_id, $store_info ) {
    	echo '<section class="i-section archive-posts">
    		<div class="articles-container">';
    }, 50, 2);
    
    add_action( 'wcfmmp_after_store_article_loop_start', function( $store_id, $store_info ) {
    	echo '<div class="row section-body grid">';
    }, 50, 2);
    
    add_action( 'wcfmmp_store_article_template', function() {
    	c27()->get_partial( 'post-preview', [
    							'wrap_in' => 'col-md-4 col-sm-6 col-xs-12 ' . ( is_sticky() ? ' sticky ' : '' ),
    						] );
    });
    
    add_action( 'wcfmmp_store_article_template_none', function() {
    	?>
    	<div class="row text-center">
    		<div>
    			<i class="no-results-icon material-icons">mood_bad</i>
    			<p><?php _e( 'No results. Try another search?', 'my-listing' ) ?></p>
    		</div>
    	</div>
    	<?php
    });
    
    add_action( 'wcfmmp_before_store_article_loop_end', function( $store_id, $store_info ) {
    	global $wp_query;
    	?>
    	<div class="blog-footer">
    		<div class="row project-changer">
    			<div class="text-center">
    				<?php echo paginate_links([
    					'total'   => $wp_query->max_num_pages,
    					'format'  => '?paged=%#%',
    					'current' => 0,
    					'current' => get_query_var('paged') ?: 1,
    					]) ?>
    			</div>
    		</div>
    	</div>
    	<?php
    }, 50, 2);
    
    add_action( 'wcfmmp_before_store_article_loop_end', function( $store_id, $store_info ) {
    	echo '</div>';
    }, 50, 2);
    
    add_action( 'wcfmmp_after_store_article', function( $store_id, $store_info ) {
    	echo '</div></section>';
    }, 50, 2);
    
    add_filter( 'wcfm_is_allow_store_articles', '__return_true' );
Viewing 1 replies (of 1 total)
  • The topic ‘articles not working’ is closed to new replies.