Duplicated tag in loop

Seems like one of your ACF fields contain a <a> tag in them. In HTML you cannot have and <a> tag inside another <a> tag. Check the ACF fields the_field(‘feature_item_title’) and the_field(‘hero_subtitle’), check their content, most likely you will find a <a> tag in one of them, remove it and your html will be structured … Read more

Whole site’s pagination not working after rewriting product permalink

I managed to get it fixed with the advice from tom. This is the solution I tried. function product_perma_Rewrite() { $prodCat = [‘taxonomy’ => ‘product_cat’]; $categories = get_categories($prodCat); $catSlug = []; foreach($categories as $category) { $catSlug[] = $category->slug; } add_rewrite_rule( ‘^(‘.implode(‘|’, $catSlug).’)/([^/]+)/comment-page-([0-9]{1,})/?$’, ‘index.php?post_type=product&category=$matches[1]&product=$matches[2]&cpage=$matches[3]’,’top’ ); add_rewrite_rule( ‘^(‘.implode(‘|’, $catSlug).’)/([^/]*)/?’, ‘index.php?post_type=product&category=$matches[1]&product=$matches[2]’, ‘top’ ); flush_rewrite_rules(); } add_action(‘init’, ‘product_perma_Rewrite’);

Please help a newbie with blog page issue?

WordPress uses something called Post Types to generate different types of content. The first URL belongs to a post ( default type ). You can access it under the “Posts” menu. The seconds URL belongs to a post type called “page”, or simply a Page. You can access it under the “Pages” menu. To achieve … Read more

One Time Access URL after purchasing subscription

A simple solution would be creating a unique token upon purchasing a subscription/product. Save to token somewhere in database. Present the URL to the app passing the token as a GET variable. For eample, www.company.com/app/the-awesome-tool/?token=jvp2HBst5V7iHQeE2twq When accessed, check is the token is there at the database, if not restrict access. Delete the token from database … Read more

Error 404 change permalink term custom term taxonomy

If you just want the category permalink be in the form of: example.com/products/category/<category slug>, then you don’t need to hook on term_link. Instead, you could just set the taxonomy’s rewrite slug to products/category and you would also register the taxonomy first then followed by the post type. That way, WordPress would see the request (at … Read more