Yoast Breadcrumbs Inject Multiple Levels

My quick and dirty solution was to nest 2 arrays and loop through them. You’ll need to hard-code your nth level URLs. This example singles out a specific custom post type. function yoast_seo_breadcrumb_append_link( $links ) { global $post; if ((is_singular(‘team-members’))) { $breadcrumbs[] = array( array( ‘url’ => site_url(‘/our-firm/’), ‘text’ => ‘Our Firm’ ), array( ‘url’ … Read more

How page with random php file with query params generated

The site you linked isn’t a WordPress. You can make custom WordPress URL’s using WordPress’s URL Rewrite API. See https://codex.wordpress.org/Rewrite_API/add_rewrite_rule#Example , e.g.: function custom_rewrite_basic() { add_rewrite_rule(‘^anythinghere/([0-9]+)/?’, ‘index.php?page_id=$matches[1]’, ‘top’); } add_action(‘init’, ‘custom_rewrite_basic’); This makes a new URL format like yoursite.com/anythinghere/95 If that doesn’t meet your needs you can also edit .htaccess Editing your question to include … Read more

How can I noindex my archive pages?

This worked ok for me, putting this function into a vanilla build using TwentyTwenty? I see the output in the Head. Its very crude but inside your IF statement, add some form of simple debug, either var_dump() a string out or Javascript console.log. You’re testing to make sure the IF is activating when you think … Read more

WC_Structured_Data Class Causing Needless Translation

You can change the line number 103 in the file /weglot/vendor/weglot/weglot-php/src/Parser/Check/RegexCheckerProvider.php original code : /* Add JSON LD checker */ $this->addChecker(new RegexChecker(“#<script type=(‘|\”)application\/ld\+json(‘|\”)([^\>]+?)?>(.*?)<\/script>#s” , SourceType::SOURCE_JSON, 4 , array( “description” , “name” , “headline” , “articleSection” ))); To replace by : /* Add JSON LD checker */ $this->addChecker(new RegexChecker(“#<script type=(‘|\”)application\/ld\+json(‘|\”)([^\>]+?)?>(.*?)<\/script>#s” , SourceType::SOURCE_JSON, 4 , array( “description” … Read more

My blog load time on Bluehost and Word press is too much. I have slipped in Google Search Ranking

Your total time for DNS is 486ms, which is OK. So the loading time issue is not with the hosting: http://prntscr.com/uw69rh You need to optimize your site for a faster loading. It looks like getting rid of the Fontawesome alone can save you a massive 2,580ms: http://prntscr.com/uw6bd9 So start with that. Replace all of your … Read more

How to generate alt attributes with php / filters?

Maybe not the best solution, but did it like this: function add_alt_tags($content) { global $post; $content = str_replace(‘alt=””‘, ‘alt=”‘.$post->post_title .'”‘, $content); return $content; } add_filter(‘the_content’, ‘add_alt_tags’, 100);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)