Title: tapper101's Replies | WordPress.org

---

# tapper101

  [  ](https://wordpress.org/support/users/tapper101/)

 *   [Profile](https://wordpress.org/support/users/tapper101/)
 *   [Topics Started](https://wordpress.org/support/users/tapper101/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tapper101/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tapper101/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tapper101/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tapper101/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tapper101/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/users/tapper101/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/tapper101/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/tapper101/replies/page/2/?output_format=md)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] /virtue/assets/css/fonts/kt-font-awesome.ttf?t9jwae Status 522](https://wordpress.org/support/topic/virtue-assets-css-fonts-kt-font-awesome-ttft9jwae-status-522/)
 *  Thread Starter [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/virtue-assets-css-fonts-kt-font-awesome-ttft9jwae-status-522/#post-14184542)
 * [@yellofish](https://wordpress.org/support/users/yellofish/)
 * Not so far, no. As a test I tried to access the website from other countries 
   through proxies, and the problem was gone. So most likely the problem is that
   a Cloudflare node in my country is being blocked. Not sure what to do about it
   however since my host claims that they are not blocking any Cloudflare IPs.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[GeneratePress] Change itemtype schema.org/Blog to schema.org/Article (or other) for posts?](https://wordpress.org/support/topic/change-itemtype-schema-org-blog-to-schema-org-article-or-other-for-posts/)
 *  Thread Starter [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/change-itemtype-schema-org-blog-to-schema-org-article-or-other-for-posts/#post-11907675)
 * Sort of worked, it seems to add attributes at the end of the body tag. So literally
 * `<body class="...classes..." newsarticle>`
 * Not what was intended I guess, but changing it to this works.
 *     ```
       add_filter( 'generate_body_microdata', function( $data ) {
           if ( 'nyhet_post' === get_post_type() ) {
               $data = 'itemscope itemprop="http://schema.org/NewsArticle"';
           }
   
           return $data;
       } );
       ```
   
 * Thanks 👍👍 I’ll probably just use AIOSEOP’s json+ld in the end, Michael’s solution
   worked quite well.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[GeneratePress] Change itemtype schema.org/Blog to schema.org/Article (or other) for posts?](https://wordpress.org/support/topic/change-itemtype-schema-org-blog-to-schema-org-article-or-other-for-posts/)
 *  Thread Starter [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/change-itemtype-schema-org-blog-to-schema-org-article-or-other-for-posts/#post-11904097)
 * Glad to hear you’re implementing it in the future, Michael (@hallsofmontezuma).
   Another reason to stick with AIOSEOP. And thanks a lot for the help – I’ll give
   it a go right away!
 * [@edge22](https://wordpress.org/support/users/edge22/) (Tom), if you have a code
   snippet readily available or if it’s not too much work, I’d still like to see
   your example filters. Otherwise, fixing it through AIOSEOP will probably do.
 * Thanks!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[GeneratePress] Change itemtype schema.org/Blog to schema.org/Article (or other) for posts?](https://wordpress.org/support/topic/change-itemtype-schema-org-blog-to-schema-org-article-or-other-for-posts/)
 *  Thread Starter [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/change-itemtype-schema-org-blog-to-schema-org-article-or-other-for-posts/#post-11903796)
 * Hi Tom,
 * I’m very impressed by your support here. 🙂
 * I’m using All in One SEO at the moment, but yes I do hear good things about Yoast.
   AIOSEO should come with JSON+LD as well, as I just read, but it doesn’t seem 
   to work great for custom posts.
 * It’s actually empty for my news article type. Just a pair of brackets:
 * `<script type="application/ld+json" class="aioseop-schema">{}</script>`
 * But that’s a AIOSEO issue, I shouldn’t bother you with that.
 * I think for now, I’d like to just change the markup for the articles myself, 
   so if you have some example filters you want to share I would greatly appreciate
   it. Heck, might just be a good way to learn more about structuring Schema markup.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ninja Forms - The Contact Form Builder That Grows With You] Dynamic select that gets a custom field from each post in a category?](https://wordpress.org/support/topic/dynamic-select-that-gets-a-custom-field-from-each-post-in-a-category/)
 *  Thread Starter [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/dynamic-select-that-gets-a-custom-field-from-each-post-in-a-category/#post-11810310)
 * This is probably a terrible solution, but this actually worked:
 *     ```
       add_filter( 'ninja_forms_render_options', function($options,$settings){
       	if( $settings['key'] == 'email_lists' ){
   
       		global $post;
   
       		$args = array(
       			'taxonomy' => 'supplier_cat',
       			'orderby' => 'name',
       			'order'   => 'ASC'
       		);
   
       		$cats = get_categories($args);
   
       		if ($cats) {
   
       			foreach($cats as $cat) {
   
       				$catvalue = '';
   
       				$posts = get_posts( array(
       					'post_type' => 'supplier_post',
       					'supplier_cat' => $cat->slug
       				) );
   
       				if ( $posts ) {
       					foreach ($posts as $post) {
   
       						$catvalue .= $post->mail . ',';
   
       					}
   
       					$catvalue = rtrim($catvalue, ',');
   
       				}
   
       			$options[] = array('label' => $cat->name, 'value' => $catvalue);
       			}
       		} else {
       			// fail
       		}
       	}
       	return $options;
        },10,2);
       ```
   
 * Maybe it can be helplful for someone else. And if anyone got a better way to 
   do this, please let me know lol, it’s a pretty slow query.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Rate My Post - Star Rating Plugin by FeedbackWP] Can I get a posts rating the same way I can get any custom fields value?](https://wordpress.org/support/topic/can-i-get-a-posts-rating-the-same-way-i-can-get-any-custom-fields-value/)
 *  Thread Starter [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/can-i-get-a-posts-rating-the-same-way-i-can-get-any-custom-fields-value/#post-11336976)
 * That is so helpful Blaz, I made some minor changes to the code you provided and
   put it into a function in functions.php and called it in the content-post. I’m
   sure this will help other people with similar ideas as well.
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cloudflare] PHP 7.1 Complatibility](https://wordpress.org/support/topic/php-7-1-complatibility/)
 *  [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-7-1-complatibility/#post-10505012)
 * Just like Persistent, the settings page is blank for me as well. But I’m running
   PHP 7.0 and had planned to upgrade to 7.2 and found compatibility issues like
   those mentioned in this post.
 * It doesn’t seem like Cloudflare is paying much attention to this plugin.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] Website doesn’t work anymore after updating theme](https://wordpress.org/support/topic/website-doesnt-work-anymore-after-updating-theme/)
 *  [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/website-doesnt-work-anymore-after-updating-theme/#post-9636036)
 * The problem is likely in your child theme; in your page or post templates. **
   They changed the names of some of the functions used in templates**, so if you’ve
   got the old code in your template then you’re calling a function that doesn’t
   exist which will cause an error and everything under the header will be blank.
   The header is shown because it’s called before any custom code in the template.
 * For me it was this code:
 * <?php echo esc_attr(**kadence**_main_class()); ?>
 * It’s purpose is to dynamically set the width of the main container. For instance,
   if you pick a full width layout, it will give you the class “col-md-12” which
   is a 100% width bootstrap column.
 * They changed it to this:
 * <?php echo esc_attr(**virtue**_main_class()); ?>
 * Try changing that. You could also just replace the php code with “col-md-12” 
   if you don’t need it to be dynamic.
 * If this doesn’t fix it, look for “kadence” in your child theme, and replace whatever
   you find with “virtue”.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] Issues with Version 3.0.7 Update](https://wordpress.org/support/topic/issues-with-version-3-0-7-update/)
 *  [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/issues-with-version-3-0-7-update/#post-9636018)
 * The problem is in your child theme, likely your page or post templates. They 
   changed the names of some of the functions used in templates, so if you’ve got
   the old code in your template then you’re calling a function that doesn’t exist
   which will cause an error and everything under the header will be blank. The 
   header is shown because it’s called before any custom code in the template.
 * For me it was this code:
 * `<?php echo esc_attr(kadence_main_class()); ?>`
 * It’s purpose is to dynamically set the width of the main container. For instance,
   if you pick a full width layout, it will give you the class “col-md-12” which
   is a 100% width bootstrap column.
 * They changed it to this:
 * `<?php echo esc_attr(virtue_main_class()); ?>`
 * Try changing that. You could also just replace the php code with “col-md-12” 
   if you don’t need it to be dynamic.
 * If this doesn’t fix it, look for “kadence” in your child theme, and replace whatever
   you find with “virtue”.
    -  This reply was modified 8 years, 7 months ago by [tapper101](https://wordpress.org/support/users/tapper101/).
    -  This reply was modified 8 years, 7 months ago by [tapper101](https://wordpress.org/support/users/tapper101/).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] theme upload guide](https://wordpress.org/support/topic/theme-upload-guide/)
 *  [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/theme-upload-guide/#post-9632938)
 * If you prefer to follow video guides, this guy is pretty good:
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] theme upload guide](https://wordpress.org/support/topic/theme-upload-guide/)
 *  [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/theme-upload-guide/#post-9632888)
 * Wow. ok. Easiest way to do it is to go to your admin panel (a.k.a. _Dashboard_)
   and click on _Themes_ under Appearence; then you simply search for Virtue, install
   and activate.
 * Other way is to use an FTP client. You would go to [https://wordpress.org/themes/virtue/](https://wordpress.org/themes/virtue/)
   and download the theme to your computer, connect to your site with your FTP client
   and then move the theme folder into wp-content/themes/.
 * There isn’t a specific way to install this particular theme, it’s the same any
   WordPress theme is installed, you could’ve just used Google and you’d get a thousand
   results.
 * EDIT: Here you go
    [http://www.wpbeginner.com/beginners-guide/how-to-install-a-wordpress-theme/](http://www.wpbeginner.com/beginners-guide/how-to-install-a-wordpress-theme/)
 * Also, if you’re using wordpress.com:
    [http://www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/](http://www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/)
    -  This reply was modified 8 years, 7 months ago by [tapper101](https://wordpress.org/support/users/tapper101/).
    -  This reply was modified 8 years, 7 months ago by [tapper101](https://wordpress.org/support/users/tapper101/).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] theme upload guide](https://wordpress.org/support/topic/theme-upload-guide/)
 *  [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/theme-upload-guide/#post-9632807)
 * You’ll probably need to be more specific. What kind of upload? Are you talking
   about uploading media (images, etc)?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] Files changed list for Oct 25 update 3.0.7](https://wordpress.org/support/topic/files-changed-list-for-oct-25-update-3-0-7/)
 *  [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/files-changed-list-for-oct-25-update-3-0-7/#post-9632756)
 * Wow, OK. Turns out it was <?php echo esc_attr(kadence_main_class()); ?> that 
   was used as a class in the _main_ div. I changed it to
 * `<div class="main <?php echo esc_attr(virtue_main_class()); ?>" role="main">`
 * And it works again. I assume you changed a lot of the **kadence** into **virtue**
   in your actions, etc. I think you’ve changed the footer action to do_action(‘
   virtue_page_footer’); as well?
 * Hopefully this will help others with the same problem.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] Files changed list for Oct 25 update 3.0.7](https://wordpress.org/support/topic/files-changed-list-for-oct-25-update-3-0-7/)
 *  [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/files-changed-list-for-oct-25-update-3-0-7/#post-9632650)
 * I just want to second this. My site broke as well, every page using a custom 
   template is blank (except for the header).
 * I haven’t modified anything in functions.php in my child theme, I’m simply enqueueing
   scripts/styles, registering custom post types, and registering a widget area.
   The only Virtue theme related code I have there is
 *     ```
       add_filter('kadence_display_sidebar', 'kt_remove_all_sidebars');
   
       function kt_remove_all_sidebars($sidebar) {
   
           return false;
   
       }
       ```
   
 * So I’m going to assume it’s something wrong with my templates.
 * Thankfully it’s my test site (duplicate of main site) that is broken by this 
   update, I haven’t updated the main site yet until I can figure out how to fix
   this. (Thank god for test sites).
 * My templates are simplified copies of the Virtue ones, only thing left in them(
   of the original code) is:
 *     ```
       <?php 
                       /**
                       * @hooked virtue_page_comments - 20
                       */
                       do_action('kadence_page_footer');
                       ?>
       ```
   
 * As well as this (though I assume this is irrelevant): <?php get_template_part(‘
   templates/page’, ‘header’); ?> and <?php echo esc_attr(kadence_main_class());?
   >
 * I’ll try to figure this out.. I’ll look at the templates in the main theme.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] How to change excerpt link text (‘Continued’)?](https://wordpress.org/support/topic/how-to-change-excerpt-link-text-continued/)
 *  Thread Starter [tapper101](https://wordpress.org/support/users/tapper101/)
 * (@tapper101)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/how-to-change-excerpt-link-text-continued/#post-9446861)
 * > Probably kadence_excerpt_more hooked to the excerpt_more filter action (see
   > cleanup.php).
 * Thanks, that did it.
 * For anyone with the same problem:
 *     ```
       function child_theme_excerpt() {
       	// override parent theme's 'more' text for excerpts
       	remove_filter( 'excerpt_more', 'kadence_excerpt_more' );
       }
       add_action( 'after_setup_theme', 'child_theme_excerpt' );
   
       function new_excerpt_more($more) {
              global $post;
       	return '<a class="moretag" style="text-decoration:none" href="'. get_permalink($post->ID) . '">.. Läs mer</a>';
       }
       add_filter('excerpt_more', 'new_excerpt_more');
       ```
   

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/users/tapper101/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/tapper101/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/tapper101/replies/page/2/?output_format=md)