delweratjk
Forum Replies Created
-
Forum: Plugins
In reply to: [Remove CPT base] 404 errorhow to fix it? please update my code and provide me.
Forum: Plugins
In reply to: [Remove CPT base] 404 error<?php
/**
?* Class Docs
?*/
class Docs {
? ? /**
? ? ?* The post type name.
? ? ?*
? ? ?* @var string
? ? ?*/
? ? private $post_type = 'docs';
? ? /**
? ? ?* Initialize the class
? ? ?*/
? ? public function __construct() {
? ? ? ? add_action( 'init', [ $this, 'register_post_type' ] );
? ? ? ? add_action( 'init', [ $this, 'register_taxonomy' ] );
? ? ? ? add_action( 'init', [ $this, 'register_badge' ] );
? ? }
? ? /**
? ? ?* Register the post type.
? ? ?*
? ? ?* @return void
? ? ?*/
? ? public function register_post_type() {
? ? ? ? /**
? ? ? ? ?* Docs slug
? ? ? ? ?* @var string
? ? ? ? ?*/
? ? ? ? $settings_options ? = get_option( 'eazydocs_settings' );
? ? ? ? $custom_slug ? ? ? ?= $settings_options['docs-type-slug'] ?? '';
? ? ? ? // Validate the slug
? ? ? ? $pattern ? ? ? ? ? ?= '/[^a-zA-Z0-9-_]/';
? ? ? ? $safe_slug ? ? ? ? ?= preg_replace( $pattern, '-', $custom_slug ); ? ? ?
? ? ? ? $slug ? ? ? ? ? ? ? = $safe_slug ?? 'docs';
? ? ? ? // Docs URL structure
? ? ? ? $docs_url ? ? ? ? ? = ezd_get_opt('docs-url-structure', 'custom-slug');
? ? ? ? if ( ezd_is_premium() && $docs_url == 'post-name' ) { ? ? ?
? ? ? ? ? ? $rewrite = [
? ? ? ? ? ? ? ? 'slug' ? ? ? => '/',
? ? ? ? ? ? ? ? 'with_front' => true,
? ? ? ? ? ? ? ? 'pages' ? ? ?=> true,
? ? ? ? ? ? ? ? 'feeds' ? ? ?=> true,
? ? ? ? ? ? ];
? ? ? ? } else { ? ? ? ? ? ?
? ? ? ? ? ? $rewrite = [
? ? ? ? ? ? ? ? 'slug' ? ? ? => $slug,
? ? ? ? ? ? ? ? 'with_front' => true,
? ? ? ? ? ? ? ? 'pages' ? ? ?=> true,
? ? ? ? ? ? ? ? 'feeds' ? ? ?=> true,
? ? ? ? ? ? ]; ? ? ? ? ?
? ? ? ? }
? ? ? ? $labels = [
? ? ? ? ? ? 'name' ? ? ? ? ? ? ? => _x( 'Docs', 'Post Type General Name', 'eazydocs' ),
? ? ? ? ? ? 'singular_name' ? ? ?=> _x( 'Doc', 'Post Type Singular Name', 'eazydocs' ),
? ? ? ? ? ? 'menu_name' ? ? ? ? ?=> __( 'EazyDocs', 'eazydocs' ),
? ? ? ? ? ? 'parent_item_colon' ?=> __( 'Parent Doc', 'eazydocs' ),
? ? ? ? ? ? 'all_items' ? ? ? ? ?=> __( 'All Docs', 'eazydocs' ),
? ? ? ? ? ? 'view_item' ? ? ? ? ?=> __( 'View Doc', 'eazydocs' ),
? ? ? ? ? ? 'add_new_item' ? ? ? => __( 'Add Doc', 'eazydocs' ),
? ? ? ? ? ? 'add_new' ? ? ? ? ? ?=> __( 'Add New', 'eazydocs' ),
? ? ? ? ? ? 'edit_item' ? ? ? ? ?=> __( 'Edit Doc', 'eazydocs' ),
? ? ? ? ? ? 'update_item' ? ? ? ?=> __( 'Update Doc', 'eazydocs' ),
? ? ? ? ? ? 'search_items' ? ? ? => __( 'Search Doc', 'eazydocs' ),
? ? ? ? ? ? 'not_found' ? ? ? ? ?=> __( 'Not Doc found', 'eazydocs' ),
? ? ? ? ? ? 'not_found_in_trash' => __( 'Not found in Trash', 'eazydocs' ),
? ? ? ? ];
? ? ? ? $args = [
? ? ? ? ? ? 'labels' ? ? ? ? ? ? ?=> $labels,
? ? ? ? ? ? 'supports' ? ? ? ? ? ?=> [ 'title', 'editor', 'thumbnail', 'revisions', 'page-attributes', 'comments', 'author', 'excerpt', 'blocks' ],
? ? ? ? ? ? 'hierarchical' ? ? ? ?=> true,
? ? ? ? ? ? 'public' ? ? ? ? ? ? ?=> true,
? ? ? ? ? ? 'show_ui' ? ? ? ? ? ? => true,
? ? ? ? ? ? 'show_in_menu' ? ? ? ?=> false,
? ? ? ? ? ? 'show_in_nav_menus' ? => true,
? ? ? ? ? ? 'show_in_admin_bar' ? => true,
? ? ? ? ? ? 'menu_icon' ? ? ? ? ? => 'dashicons-media-document',
? ? ? ? ? ? 'can_export' ? ? ? ? ?=> true,
? ? ? ? ? ? 'has_archive' ? ? ? ? => false,
? ? ? ? ? ? 'exclude_from_search' => false,
? ? ? ? ? ? 'publicly_queryable' ?=> true,
? ? ? ? ? ? 'show_in_rest' ? ? ? ?=> true,
? ? ? ? ? ? 'rewrite' ? ? ? ? ? ? => $rewrite,
? ? ? ? ? ? 'map_meta_cap' ? ? ? ?=> true,
? ? ? ? ? ? 'taxonomies' ? ? ? ? ?=> [ 'doc_tag' ]
? ? ? ? ];
? ? ? ? register_post_type( $this->post_type, apply_filters( 'eazydocs_post_type', $args ) );
? ? }
? ? /**
? ? ?* Register doc tags taxonomy.
? ? ?*
? ? ?* @return void
? ? ?*/
? ? public function register_taxonomy() {
? ? ? ? $labels = [
? ? ? ? ? ? 'name' ? ? ? ? ? ? ? ? ? ? ? => _x( 'Tags', 'Taxonomy General Name', 'eazydocs' ),
? ? ? ? ? ? 'singular_name' ? ? ? ? ? ? ?=> _x( 'Tag', 'Taxonomy Singular Name', 'eazydocs' ),
? ? ? ? ? ? 'menu_name' ? ? ? ? ? ? ? ? ?=> __( 'Tags', 'eazydocs' ),
? ? ? ? ? ? 'all_items' ? ? ? ? ? ? ? ? ?=> __( 'All Tags', 'eazydocs' ),
? ? ? ? ? ? 'parent_item' ? ? ? ? ? ? ? ?=> __( 'Parent Tag', 'eazydocs' ),
? ? ? ? ? ? 'parent_item_colon' ? ? ? ? ?=> __( 'Parent Tag:', 'eazydocs' ),
? ? ? ? ? ? 'new_item_name' ? ? ? ? ? ? ?=> __( 'New Tag', 'eazydocs' ),
? ? ? ? ? ? 'add_new_item' ? ? ? ? ? ? ? => __( 'Add New Item', 'eazydocs' ),
? ? ? ? ? ? 'edit_item' ? ? ? ? ? ? ? ? ?=> __( 'Edit Tag', 'eazydocs' ),
? ? ? ? ? ? 'update_item' ? ? ? ? ? ? ? ?=> __( 'Update Tag', 'eazydocs' ),
? ? ? ? ? ? 'view_item' ? ? ? ? ? ? ? ? ?=> __( 'View Tag', 'eazydocs' ),
? ? ? ? ? ? 'separate_items_with_commas' => __( 'Separate items with commas', 'eazydocs' ),
? ? ? ? ? ? 'add_or_remove_items' ? ? ? ?=> __( 'Add or remove items', 'eazydocs' ),
? ? ? ? ? ? 'choose_from_most_used' ? ? ?=> __( 'Choose from the most used', 'eazydocs' ),
? ? ? ? ? ? 'popular_items' ? ? ? ? ? ? ?=> __( 'Popular Tags', 'eazydocs' ),
? ? ? ? ? ? 'search_items' ? ? ? ? ? ? ? => __( 'Search Tags', 'eazydocs' ),
? ? ? ? ? ? 'not_found' ? ? ? ? ? ? ? ? ?=> __( 'Not Found', 'eazydocs' ),
? ? ? ? ? ? 'no_terms' ? ? ? ? ? ? ? ? ? => __( 'No items', 'eazydocs' ),
? ? ? ? ? ? 'items_list' ? ? ? ? ? ? ? ? => __( 'Tags list', 'eazydocs' ),
? ? ? ? ? ? 'items_list_navigation' ? ? ?=> __( 'Tags list navigation', 'eazydocs' ),
? ? ? ? ];
? ? ? ? $rewrite = [
? ? ? ? ? ? 'slug' ? ? ? ? => 'doc-tag',
? ? ? ? ? ? 'with_front' ? => true,
? ? ? ? ? ? 'hierarchical' => false,
? ? ? ? ];
? ? ? ? $args = [
? ? ? ? ? ? 'labels' ? ? ? ? ? ?=> $labels,
? ? ? ? ? ? 'hierarchical' ? ? ?=> false,
? ? ? ? ? ? 'public' ? ? ? ? ? ?=> true,
? ? ? ? ? ? 'show_ui' ? ? ? ? ? => true,
? ? ? ? ? ? 'show_admin_column' => true,
? ? ? ? ? ? 'show_in_nav_menus' => true,
? ? ? ? ? ? 'show_tagcloud' ? ? => true,
? ? ? ? ? ? 'show_in_rest' ? ? ?=> true,
? ? ? ? ? ? 'rewrite' ? ? ? ? ? => $rewrite,
? ? ? ? ];
? ? ? ? register_taxonomy( 'doc_tag', [ 'docs' ], $args );
? ? }
Please check my code above.Thank you for bringing this matter to our attention, and we sincerely apologize for any inconvenience you’ve experienced. We value your feedback and are committed to addressing your concerns promptly.
After investigating the issue in our plugin, we were unable to identify the specific error you mentioned regarding the annoying popup for leaving a review. So we recommend to check the same issue again within your dashboard to ensure that the problem persists.
Your cooperation in providing more information will enable us to offer a more accurate and efficient solution.
Thank you for your understanding and cooperation.
Thank you for contacting our support. What you are saying is that other heading tags except h1 do not work. You can see the screenshot https://prnt.sc/cP9Lpnlk1hH3 and if necessary you can see this URL https://shorturl.at/klpAD where h3 without h1 is working. I’ve added h3 to show you. Hope you have already seen this on your site.
Hello
Thank you very much for contacting our support. We inform you that Yes it’s FSE compatible. But if you find any unexpected issue while using it, let us know and we will solve it.
Thank you a bunch again.Me and all of our team members are always ready to solve any problem with utmost sincerity.
Thank you very much for your valuable comments.Hello
Thanks for reaching out. You can add gallery images inside doc content using plugin like “Photo Gallery Plugin” or any others plugin no problem at all.Most of the plugins are use a shortcode to display their galleries. So just paste their shortcode to display the gallery anywhere in the doc content.
Thank you.
Thank you
We have already fixed the issue, hope you have received the update and it works for you.
Thank you.Thank you
Your constructive and inspiring reviews will help us to increase our dedication towards our work.
Thank you.Dear @robjonesinteract ,
Thank you for contacting us. We appreciate your interest in our plugin and we would be glad to assist you.We are already investigating the issue in our development environment and trying to find the issue and fix it as soon as possible. You will be notified via update notification when the issue is resolved.
We remain at your service and look forward to hearing back from you.
Best regards,
EazyDocs Support TeamWe’re not seeing any such issue in our environment. Tell us how you produced these issues so we can detect them and try to resolve.
Thank youForum: Plugins
In reply to: [LearnPress - Course Wishlist] Js IssueTheir support center so bad. They’re not responding….