Forum Replies Created
- AuthorPosts
- ceo3ParticipantThis reply has been marked as private.ceo3Participant
Hi, I already did everything as directed, but I can’t get the personalized post to appear. Now a “-” is appearing. Can I send the username and password for you to access and help me resolve? Please.
I don’t know if it’s the source code of the model file.
I did everything as directed.
I’m using the Snippet Plugin to place the codes.
Thank you for your help.
Attachments:
You must be logged in to view attached files.ceo3ParticipantHello, could you help me send you the template file here: wcfmmp-view-store-art-works.php
can attach in a zip.
Thank you.
ceo3Participantok i will test. Another question, how do I display this personalized “artistas” posting tab on the frontend, according to permissions (capability) in the groups and staff plugin in the admin.
Can you send me the code for this?
Tanks.
ceo3Participantthe last code you sent me is for those who use ELEMENTOR and the DIVI theme. I am not use ELEMENTOR.
My theme is NORTH and I use VISUAL COMPOSER. I need the code for the NORTH and VISUAL composer. Understood? Tanks
ceo3ParticipantI use the NORTH template with Visual Composer (WP Bakery), can I send this appropriate code?
https://themeforest.net/item/north-responsive-woocommerce-theme/9117256
ceo3ParticipantTab Code:
add_action( 'wcfmmp_rewrite_rules_loaded', function( $wcfm_store_url ) { global $WCFM, $WCFMmp; add_rewrite_rule( $wcfm_store_url.'/([^/]+)/'.$WCFMmp->wcfmmp_rewrite->store_endpoint('artistas').'?$', 'index.php?post_type=artistas&'.$wcfm_store_url.'=$matches[1]&'.$WCFMmp->wcfmmp_rewrite->store_endpoint('artistas').'=true', 'top' ); }, 50 ); add_filter( 'query_vars', function( $vars ) { $vars[] = 'artistas'; return $vars; }, 50 ); add_filter( 'wcfmmp_store_tabs', function( $store_tabs, $store_id ) { $store_tabs['artistas'] = 'Artistas 3'; return $store_tabs; }, 50, 2 ); add_filter( 'wcfmp_store_tabs_url', function( $store_tab_url, $tab ) { if( $tab == 'artistas' ) { $store_tab_url .= 'artistas'; } return $store_tab_url; }, 50, 2 ); add_filter( 'wcfmp_store_default_query_vars', function( $query_var ) { global $WCFM, $WCFMmp; if ( get_query_var( 'artistas' ) ) { $query_var = 'artistas'; } return $query_var; }, 50 ); add_filter( 'wcfmmp_store_default_template', function( $template, $tab ) { if( $tab == 'artistas' ) { $template = 'store/wcfmmp-view-store-artistas.php'; } return $template; }, 50, 2);
Template file code:
<?php $vars = $wp_query->query_vars; $columns = array_key_exists('columns', $vars) ? $vars['columns'] : 3; $cols = 'large-4'; switch($columns) { case '1': $cols = 'large-12'; break; case '2': $cols = 'medium-6 large-6'; break; case '3': default: $cols = 'medium-6 large-4'; break; case '4': $cols = 'medium-6 large-3'; break; } ?> <div class="small-12 <?php echo esc_attr($cols); ?> columns item"> <article itemscope itemtype="http://schema.org/Article" <?php post_class('post style1'); ?>> <?php if ( has_post_thumbnail() ) { ?> <figure class="post-gallery"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail( 'north-blog-masonry-2x' ); ?> </a> </figure> <?php } ?> <?php get_template_part( 'inc/templates/postbit/post-categories'); ?> <header class="post-title entry-header"> <?php the_title('<h3 class="entry-title" itemprop="name headline"><a href="'.get_permalink().'" title="'.the_title_attribute("echo=0").'">', '</a></h3>'); ?> </header> <div class="post-content"> <?php the_excerpt(); ?> </div> <?php do_action( 'thb_PostMeta' ); ?> </article> </div>
Attached screen showing that you continue to display products. Need that display custom post type (cpt) “artistas”.
Attachments:
You must be logged in to view attached files.ceo3ParticipantHi, Sarmistha Chakraborty,
I want to change it to show the news in the template’s grid format, how do I do it?
>> For this “wcfmmp_store_article_template” function body which we have mentioned previously. This is theme customizations. You will find the “theme blog template here -“\wp-content\themes\north-wp\inc\templates\blogbit”Can you send me a template file to list a custom post type in a grid?
how could I use this code to have another tab showing a custom custom post type?
>> Please check here – https://wordpress.org/support/topic/custom-tab-in-vendor-store-page/I’ve done everything in (https://wordpress.org/support/topic/custom-tab-in-vendor-store-page/) but keep listing products, where in the code do I change to display a custom post type (CPT “artists”)?
I forgot to take one more question, how do I display it only on the store page, and not on the home and other parts of the site?
>>Sorry this point is not clear, the above code we have mentioned you previous reply is for add “article” tab for vendor store page.I’ll be clearer. How to make news from the supplier only display on the supplier’s page. It cannot display on the website’s homepage.
Tanks
May 20, 2020 at 11:24 pm in reply to: How to add custom post types to your Store Manager Dashboard #133629ceo3ParticipantI made the changes, but the site went offline. Did I do something wrong? Check the code as it was, please. I put this link to better visualize:
May 20, 2020 at 8:58 pm in reply to: How to add custom post types to your Store Manager Dashboard #133580ceo3ParticipantThanks. I have another need. How do I display these types of personalized posts in a new tab on the store page? Can you help me by sending a source code to add to a snippet?
May 19, 2020 at 10:09 pm in reply to: How to add custom post types to your Store Manager Dashboard #133195ceo3ParticipantThank you very much it worked. But I have one more need, I need CPTs to also appear in the permission settings of Managers and Staffs.
ceo3ParticipantDeculpe, but I forgot to take one more question, how do I display it only on the store page, and not on the home and other parts of the site?
ceo3ParticipantThank you. It worked. If I want to change it to show the news in the template’s grid format, how do I do it?
Another question, how could I use this code to have another tab showing a custom custom post type?
May 19, 2020 at 7:54 am in reply to: How to add custom post types to your Store Manager Dashboard #132880ceo3ParticipantThank you very much, the code worked. However, I still only have two problems. Menu items continue to appear even though they are disabled. see attached screen.
The titles of the two CPTs, are appearing duplicated in WCFM’s capability.
I await help to resolve. Thanks.
Attachments:
You must be logged in to view attached files.ceo3ParticipantMy template is: North (https://themeforest.net/item/north-responsive-woocommerce-theme/9117256)
What’s the code for it?
ceo3ParticipantMy theme is: North
https://themeforest.net/item/north-responsive-woocommerce-theme/9117256ceo3ParticipantHow can I add this code that creates a new tab for articles in a standard way to any template? I need that code.
ceo3ParticipantHow can I add this code that creates a new tab for articles in a standard way to any template? I need that code. Tanks.
May 15, 2020 at 9:01 pm in reply to: How to add custom post types to your Store Manager Dashboard #131458ceo3ParticipantCreate two CTPs with the WCFM-CPT plug-in.
I want these two custom post types “Artists” and “Exhibits” to appear under “Permissions (Capability)”. I want to configure them using the Group and Staff plugin.I believe it is some limitation of the plugin. Because the CPTs that appear appear in WCMF “Permissions (Capability)”.
Attachments:
You must be logged in to view attached files.May 15, 2020 at 3:25 am in reply to: How to add custom post types to your Store Manager Dashboard #131114ceo3ParticipantHello, I’m using the WCFM-CPT plugin, and I want to know how do I make the three CPTs appear in the wcfm group & staff plugin’s permission control?
- AuthorPosts