Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hi @ahsanmani,

    Kindly check, you have granted all PRIVILEGES over database to newly created user from cPanel or use url https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql.

    Hi @freedaz

    You can manage your plugins through GoDaddy as well, just got through following steps

    1) Login to GoDaddy

    2) Open cPanel Admin

    3) Open File Manager

    4) Go to file the file directory wp-content/plugins, here you will get list of plugins.

    5) just rename plugin directory quiz-master-next.7.1.2 to quiz-master-next.7.1.2-back

    6) At last refresh your website admin url https://mylunahealing.com/wp-admin/

    I hope, your website error will be resolved.

    Hi @missswain,

    Update below code in the Custom CSS tab under Appearance > Customize
    OR
    You can update this code in your active theme style.css/style.min.css file (Path: https://wildaboutnutrition.co.uk/wp-content/themes/soledad/style.css)

    Old Code:

    #header {
        margin-bottom: 60px; 
        position: relative;
    }

    New Code:

    #header {
        margin-bottom: 25px; 
        position: relative;
    }

    Hi @johnhardy

    Given url: https://www.fb-designs.co.uk is not working and also elaborate your issue.

    Hi @davil2008,

    Try this code

    div#custom_html-5.widget_text.widget.widget_custom_html {
     box-shadow: 1px 9px 9px 4px rgba(163, 163, 163, 0.68);
    }

    Hi @wongsathorn

    Try this code for your requirement

    $parent_cat_arg = array('hide_empty' => false, 'parent' => 0 );
    $parent_categories = get_terms('category',$parent_cat_arg);
    
    foreach ($parent_categories as $category) {
    
        echo '<h2>'.$category->name.'</h2>'; //Parent Category
    
        $child_arg = array( 'hide_empty' => false, 'parent' => $category->term_id );
        $child_cat = get_terms( 'category', $child_arg );
    
        echo '<ul>';
            foreach( $child_cat as $child_term ) {
                echo '<li>'.$child_term->name . '</li>'; //Child Category
            }
        echo '</ul>';
    
    }

    Hi @tanjar,

    Yes, we can use date() function, also WordPress date_i18n() function is giving me same result just like PHP date() function.

    Hi @knaswell94,

    Paste below code in the Custom CSS tab under Appearance > Customize
    OR
    You can add this code in your active theme style.css/style.min.css file (Path: https://squeakycleanadvisor.com/wp-content/themes/astra/assets/css/minified/style.min.css)

    .wp-block-image .alignleft figcaption {
    	text-align: center;
    }

    Hi @meskiler,

    You need to update CSS property z-index: 100; to z-index: 99999; in your theme style sheet (path: https://armonatraining.com/wp-content/themes/wplms/assets/css/style.min.css)

    Old Code:
    
    #vibe_bp_login {
        display: none;
        width: 240px;
        position: absolute;
        right: 0;
        top: 36px;
        background: #232b2d;
        border-radius: 2px;
        opacity: 1;
        z-index: 100;
        margin: 0;
        padding: 20px;
        border: none;
        font-size: 12px;
    }
    Updated Code:
    
    #vibe_bp_login {
        display: none;
        width: 240px;
        position: absolute;
        right: 0;
        top: 36px;
        background: #232b2d;
        border-radius: 2px;
        opacity: 1;
        z-index: 99999;
        margin: 0;
        padding: 20px;
        border: none;
        font-size: 12px;
    }

    Hi @tanjar,

    Replace your code

    <time><?php if (isset($event_from_date) && $event_from_date <> ”) echo date_i18n(get_option(‘date_format’), strtotime($event_from_date)) . ‘,’; ?></time>

    with

    <time>
    <?php
    // your_meta_key replace with post meta key
    $event_from_date = get_post_meta( $post->ID, 'your_meta_key', true );
    
    if ( isset( $event_from_date ) && !empty( $event_from_date ) ) {
    	echo date_i18n(get_option('date_format'), strtotime( $event_from_date ));
    }
    ?>
    </time>

    I checked date_i18n() and it is working fine for me

    <time>
    <?php
    $event_from_date = time();
    
    if ( isset( $event_from_date ) && !empty( $event_from_date ) ) {
     echo date_i18n(get_option('date_format'), strtotime( $event_from_date ));
    }
    ?>
    </time>

    check: time()

    Hi @letternanda,

    I checked your My Slider Service plugin code for custom post type “mysliderservice”, I implemented it at my end and it is working fine.

    plugin path: wp-content/plugins/mysliderservice/mysliderservice.php

       <?php
        /*
        Plugin Name: Plugin Development 101
        Plugin URI: https://abc.com/mysliderservice/
        Description: An introductory demo for plugin development
        Author: Mangesh Nadekar
        Version: 1.0.0
        */
    
      add_action('init','newposttype_create');
    
      function newposttype_create() {
         $newpost="mysliderservice";
         $labels = array(
             'name'                  => _x( $newpost, 'Post type general name', 'textdomain' ),
             'singular_name'         => _x( $newpost, 'Post type singular name', 'textdomain' ),
             'menu_name'             => _x( 's', 'Admin Menu text', 'textdomain' ),
             'name_admin_bar'        => _x( $newpost, 'Add New on Toolbar', 'textdomain' ),
             'add_new'               => __( 'Add New', 'textdomain' ),
             'add_new_item'          => __( 'Add New ', 'textdomain' ),
             'new_item'              => __( 'New ', 'textdomain' ),
             'edit_item'             => __( 'Edit ', 'textdomain' ),
             'view_item'             => __( 'View ', 'textdomain' ),
             'all_items'             => __( 'All ', 'textdomain' ),
             'search_items'          => __( 'Search ', 'textdomain' ),
             'parent_item_colon'     => __( 'Parent :', 'textdomain' ),
             'not_found'             => __( 'No found.', 'textdomain' ),
             'not_found_in_trash'    => __( 'No found in Trash.', 'textdomain' ),
             'featured_image'        => _x( ' Cover Image', 'Overrides the “Featured Image” phrase for this post type. Added in 4.3', 'textdomain' ),
             'set_featured_image'    => _x( 'Set cover image', 'Overrides the “Set featured image” phrase for this post type. Added in 4.3', 'textdomain' ),
             'remove_featured_image' => _x( 'Remove cover image', 'Overrides the “Remove featured image” phrase for this post type. Added in 4.3', 'textdomain' ),
             'use_featured_image'    => _x( 'Use as cover image', 'Overrides the “Use as featured image” phrase for this post type. Added in 4.3', 'textdomain' ),
             'archives'              => _x( ' archives', 'The post type archive label used in nav menus. Default “Post Archives”. Added in 4.4', 'textdomain' ),
             'insert_into_item'      => _x( 'Insert into Location', 'Overrides the “Insert into post”/”Insert into page” phrase (used when inserting media into a post). Added in 4.4', 'textdomain' ),
             'uploaded_to_this_item' => _x( 'Uploaded to this Location', 'Overrides the “Uploaded to this post”/”Uploaded to this page” phrase (used when viewing media attached to a post). Added in 4.4', 'textdomain' ),
             'filter_items_list'     => _x( 'Filter Locations list', 'Screen reader text for the filter links heading on the post type listing screen. Default “Filter posts list”/”Filter pages list”. Added in 4.4', 'textdomain' ),
             'items_list_navigation' => _x( ' list navigation', 'Screen reader text for the pagination heading on the post type listing screen. Default “Posts list navigation”/”Pages list navigation”. Added in 4.4', 'textdomain' ),
             'items_list'            => _x( ' list', 'Screen reader text for the items list heading on the post type listing screen. Default “Posts list”/”Pages list”. Added in 4.4', 'textdomain' ),
         );
    
         $args = array(
             'labels'             => $labels,
             'public'             => true,
             'publicly_queryable' => true,
             'show_ui'            => true,
             'show_in_menu'       => true,
             'query_var'          => true,
             'rewrite'            => array( 'slug' => $newpost ),
             'capability_type'    => 'post',
             'has_archive'        => true,
             'hierarchical'       => false,
             'menu_position'      => null,
             'supports'           => array( 'title', 'editor', 'thumbnail', 'excerpt'),
         );
         register_post_type( $newpost, $args );
       }

    Check link:

    Slider listing: https://tinyurl.com/y48l85ao

    Single Slide: https://tinyurl.com/y2n4d42w

    Hi @marcorroma,

    I am glad that it works for you.

    Hi @marcorroma,

    To avoid duplicate posts add following code in your active theme functions.php

    add_filter(‘post_link’, ‘cr_search_displayed_posts’);
    add_action(‘pre_get_posts’,’cr_remove_already_displayed_posts’);

    $displayed_posts = [];

    function cr_search_displayed_posts($url) {
    global $displayed_posts;
    $displayed_posts[] = get_the_ID();
    return $url; // don’t mess with the url
    }

    function cr_remove_already_displayed_posts($query) {
    global $displayed_posts;
    $query->set(‘post__not_in’, $displayed_posts);
    }

    Hi @heyhayz,

    You just need to replace your css code

    .blogshop-standard-post__blog-meta > span.posted_by {
        display: inline-block;
    }

    with

    .blogshop-standard-post__blog-meta > span.posted_by {
        display: none;
    }

    in your project’s style.css

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