Support Forum ยป User Profile

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: How to add country specific time? #39728
    sharebiology@gmail.com[email protected]
    Participant

    Hi,

    Thanks for providing the solution. I am a non-coder, so let me explain what I understood from your reply.
    For example, if the job posting's last date is 13th December 2022, for a position in the USA. Since I am posting it from India, first I need to recalculate what would be date and time in India and the date and time should be entered as such. But, because I have opted for 'save time value as time stamp', even after me adding the last date according to India time, for a user viewing from the US would be accurate. because the option calculates the difference and shows the modified time.

    Did I get it right?

    now the question is, does this calculation get affected by VPN?

    ---------------------------

    another question: is there any way to show a countdown timer based on this value?

    Thanks in advance

    sharebiology@gmail.com[email protected]
    Participant

    Working now.

    Thanks ๐Ÿ™‚

    sharebiology@gmail.com[email protected]
    Participant

    Hello,

    Here is the code

    <?php
    add_action( 'init', 'your_prefix_register_post_type' );
    function your_prefix_register_post_type() {
        $labels = [
            'name'                     => esc_html__( 'Tissue clearing methods', 'your-textdomain' ),
            'singular_name'            => esc_html__( 'Tissue clearing method', 'your-textdomain' ),
            'add_new'                  => esc_html__( 'Add New', 'your-textdomain' ),
            'add_new_item'             => esc_html__( 'Add new tissue clearing method', 'your-textdomain' ),
            'edit_item'                => esc_html__( 'Edit Tissue clearing method', 'your-textdomain' ),
            'new_item'                 => esc_html__( 'New Tissue clearing method', 'your-textdomain' ),
            'view_item'                => esc_html__( 'View Tissue clearing method', 'your-textdomain' ),
            'view_items'               => esc_html__( 'View Tissue clearing methods', 'your-textdomain' ),
            'search_items'             => esc_html__( 'Search Tissue clearing methods', 'your-textdomain' ),
            'not_found'                => esc_html__( 'No tissue clearing methods found', 'your-textdomain' ),
            'not_found_in_trash'       => esc_html__( 'No tissue clearing methods found in Trash', 'your-textdomain' ),
            'parent_item_colon'        => esc_html__( 'Parent Tissue clearing method:', 'your-textdomain' ),
            'all_items'                => esc_html__( 'All Tissue clearing methods', 'your-textdomain' ),
            'archives'                 => esc_html__( 'Tissue clearing method Archives', 'your-textdomain' ),
            'attributes'               => esc_html__( 'Tissue clearing method Attributes', 'your-textdomain' ),
            'insert_into_item'         => esc_html__( 'Insert into tissue clearing method', 'your-textdomain' ),
            'uploaded_to_this_item'    => esc_html__( 'Uploaded to this tissue clearing method', 'your-textdomain' ),
            'featured_image'           => esc_html__( 'Featured image', 'your-textdomain' ),
            'set_featured_image'       => esc_html__( 'Set featured image', 'your-textdomain' ),
            'remove_featured_image'    => esc_html__( 'Remove featured image', 'your-textdomain' ),
            'use_featured_image'       => esc_html__( 'Use as featured image', 'your-textdomain' ),
            'menu_name'                => esc_html__( 'Tissue clearing methods', 'your-textdomain' ),
            'filter_items_list'        => esc_html__( 'Filter tissue clearing methods list', 'your-textdomain' ),
            'filter_by_date'           => esc_html__( '', 'your-textdomain' ),
            'items_list_navigation'    => esc_html__( 'Tissue clearing methods list navigation', 'your-textdomain' ),
            'items_list'               => esc_html__( 'Tissue clearing methods list', 'your-textdomain' ),
            'item_published'           => esc_html__( 'Tissue clearing method published', 'your-textdomain' ),
            'item_published_privately' => esc_html__( 'Tissue clearing method published privately', 'your-textdomain' ),
            'item_reverted_to_draft'   => esc_html__( 'Tissue clearing method reverted to draft', 'your-textdomain' ),
            'item_scheduled'           => esc_html__( 'Tissue clearing method scheduled', 'your-textdomain' ),
            'item_updated'             => esc_html__( 'Tissue clearing method updated', 'your-textdomain' ),
            'text_domain'              => esc_html__( 'your-textdomain', 'your-textdomain' ),
        ];
        $args = [
            'label'               => esc_html__( 'Tissue clearing methods', 'your-textdomain' ),
            'labels'              => $labels,
            'description'         => '',
            'public'              => true,
            'hierarchical'        => true,
            'exclude_from_search' => false,
            'publicly_queryable'  => true,
            'show_ui'             => true,
            'show_in_nav_menus'   => true,
            'show_in_admin_bar'   => true,
            'show_in_rest'        => true,
            'query_var'           => true,
            'can_export'          => true,
            'delete_with_user'    => false,
            'has_archive'         => false,
            'rest_base'           => '',
            'show_in_menu'        => true,
            'menu_position'       => '',
            'menu_icon'           => 'dashicons-carrot',
            'capability_type'     => 'post',
            'supports'            => ['title', 'editor', 'thumbnail', 'custom-fields'],
            'taxonomies'          => [],
            'rewrite'             => [
                'with_front' => false,
            ],
        ];
    register_post_type( 'tissue-clearing-method', $args );
    }
    sharebiology@gmail.com[email protected]
    Participant

    Hi,

    I did and it is not working
    any other solution?

    in reply to: โœ…Add Taxonomy terms from a frontend form #22623
    sharebiology@gmail.com[email protected]
    Participant

    Hi Long,

    Thanks for your details.

    I use Taxonomy terms for Authors to attach multiple authors to a Post, which is not possible with WP Users. So creating WP users in frontend won't help in this case.

    To use Metabox frontend submission, maybe i could change the Authors Taxonomy for a CPT, and create a relationship between this CPT and Posts: more work but i guess it could work.

    in reply to: โœ…custom fields are overlapping with post title #16372
    sharebiology@gmail.com[email protected]
    Participant

    Hello Ahn,

    My apology for the late reply. This is happening with the Gutenberg blocks as well even after metabox deactivated

    Thanks
    Saradhi

    sharebiology@gmail.com[email protected]
    Participant

    thanks for the response.

    Ya the problem is the fields like miles per gallon or the price should display the numbers (rendering is the term I believe).

    If I make the layout with UABB or beaver builder, I do see the numbers (at least after publishing). But If I make the layout with facetwp layout builder, they are output as the field name rather the price I have entered or the number I entered for miles per gallon.

    I am practising working with facetwp - metabox in local server, so it's difficult for me to provide access.

    Thanks
    Saradhi

    sharebiology@gmail.com[email protected]
    Participant

    @ahn this is too bad. not even the first line of communication after almost a week.

Viewing 8 posts - 1 through 8 (of 8 total)