Forum Replies Created

Viewing 15 replies - 406 through 420 (of 786 total)
  • Forum: Fixing WordPress
    In reply to: Messed Up Changes

    Hello Engine44,
    I think you entered the Incorrect Url. so, you can’t accessed any things.

    To fix this please follow the below steps:

    1) Go to your current database.
    2) Then, select wp_options table.
    3) Search siteurl in column optionname and change optionvalue with your previous siteurl.
    4) And also change your home option value with same as siteurl.

    I hope it will help you.

    Thanks

    Hello kovachck,

    Glad to help you, please mark the thread resolved if you don’t have any further query.

    Thanks.

    Hello andremartinsc,
    Please check url again, your code already return first subcategory slug.

    okay, let me explain this little more, “the_archive_title()” is the function we used for archive header like “Category: category title”, “Tag: tag title”, the source code of this function is

    function the_archive_title( $before = '', $after = '' ) {
     $title = get_the_archive_title(); // this is the function Retrieve the archive title based on the queried object
    
     if ( ! empty( $title ) ) {
      echo $before . $title . $after;
     }
    }

    and the function get_the_archive_title() check that is this the category like this and append the Category before the category name like this

    if ( is_category() ) {
      $title = sprintf( __( 'Category: %s' ), single_cat_title( '', false ) );
     }

    so now in your case if you wants to remove the Category or Tags or Archive just find and replace the function “the_archive_title()” with the function “single_cat_title( ”, false )”.

    Thanks.

    hello kovachck,
    try following to enqueue on home page of your site:

    function my_script() {
      if( is_front_page() )
        {
      wp_register_script( 'my_script', get_template_directory_uri() . '/js/my_script.js', array( 'jquery' ));
      wp_enqueue_script( 'my_script' );
     }
    }
    
    add_action( 'wp_enqueue_scripts', 'my_script' );

    and get_the_ID(); returns The ID of the current item in the WordPress Loop. False if $post is not set. So if you are using it outside wordpress loop you will not get page id.

    inside the twenty sixteen theme you can find this inside the “archive.php” there at line number 27 you found this function “the_archive_title( ‘<h1 class=”page-title”>’, ‘</h1>’ );” this function calls the “get_the_archive_title()” function for this, you can find this function inside wp-includes/general-template.php.

    Hope this will help you.
    Thanks

    Forum: Fixing WordPress
    In reply to: Taxonomy Issue

    Hey diotla,

    You just need to make the permalink structure link <b>/%category%/%postname%/</b> as earlier ThemeSumo said, and assign the post only subcategory, because a post having multiple category assigned, only one can show up in the permalink. So just need to assign the subcategory only to a post and your parent categories will also be show up in the permalink.

    But if this is not working for you as you said, just save once you permalink and see if it’s all correct. If it’s still not working then just see at the Settings > Permalinks page at the bottom and you’ll find something like:

    “If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.”
    Just copy the code below these lines and paste in your .htaccess file and see now. May be due to some reason .htaccess file will not be overwritten.

    Hope this will help you.

    It seems that is a paid plugin, so it’ll be better to ask for developer support of that plugin. But if you want to hide that section you can try the following code instead of previous one:

    function hide_add_new_link() {
        if( is_admin() ) {
            if ( is_user_logged_in() ) {
                $user = wp_get_current_user();
                if ( !empty( $user ) ) {
                    // check if currently logged-in user has role: author
                    if ( in_array( 'author', (array) $user->roles ) ) {
                        global $pagenow;
                        if( 'post.php' == $pagenow ) {
                            $css = '<style>';
                            $css .= '#wpcontent .page-title-action {';
                            $css .= 'display: none;';
                            $css .= '}';
                            $css .= '#side-sortables #ms-membership-access {';
                            $css .= 'display: none;';
                            $css .= '}';
                            $css .= '</style>';
                            echo $css;
                        }
                    }
                }
            }
        }
    }
    add_action( 'init', 'hide_add_new_link');

    This should help you, but might be possible, that something may be wrong due to this. So please take care of this.

    Hope all will be well.

    Hello miltonbburke
    Fix Duplicates is a plugin which can serve your purpose but one thing which force me to rethink is it is updated a year ago although you should give it a try.Here is the link
    https://wordpress.org/plugins/fix-duplicates/

    Forum: Fixing WordPress
    In reply to: Search results

    I think things are not that clear yet.
    You are using wordpress default search widget right?
    Please tell me if you have done some custom code for search.
    Please provide in the code of your search.php You can find this file inside your active theme.
    After looking the code there, I hope , I can provide you exact solution you need.
    Looking forward to hear from you.
    Thanks

    Forum: Fixing WordPress
    In reply to: Posted by

    Hello jarilo80
    It is quite weird that you are getting this error,you should update your version if running a lower version.
    You can use the_author_link(); at the place of echo get_the_author_link();
    Hope this will help you

    Hi kevinclements2012,
    I said clearly insert code in active theme’s functions.php In your case your theme is : Peace Musings
    You just need to insert the code mentioned my me in my previous reply. And please exactly follow the same procedure as mentioned.

    You need to access your wordpress site using FTP for sure. You don’t have any other option left.
    Access in this manner.
    wp-content -> theme -> “YOUR_ACTIVE_THEME” now you can look for your functions.php file. It will be just inside your “YOUR_ACTIVE_THEME” directory.

    Insert the code just below “<?php” . As you asked for where to insert code.

    Hope you will make it this time.
    Looking forward to hear from you.

    Thanks

    Hello, I’ve installed the Sydney theme and checked on IE the logo is showing fine, can you please provide your site link so that we can test this for you and provide you the solution for same.
    also please mention the IE version you’re using for testing.

    Thanks

    Plugin Author cedcommerce

    (@cedcommerce)

    Hello Thijs

    We have checked on your given site and added a product (100 gram regendeken TOPFIT) into cart. We did not got any vat price (http://awesomescreenshot.com/09060y0w3d).

    Please tell the product name which you had added and possible then please share screenshot of that

    Thanks
    CedCommerce

    Hello 44nato44,

    There is no any error in your above code , the WordPress database error: [] shows empty array. If have any error in your query syntax then the WordPress database error array will show like below

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘wp_users’ at line 1]

    Example:

    global $wpdb;
     $wpdb->show_errors();
     $user_count = $wpdb->get_var( "SELECT COUNT(*) fFROM $wpdb->users" );
     $wpdb->print_error();
     echo "<p>User count is {$user_count}</p>";

    then it will show database error because there is error in my syntax “SELECT COUNT(*) fFROM $wpdb->users”,
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘wp_users’ at line 1]

    so don’t worry your code is fine and your db is not corrupt.
    i hope it will help you.

    Thanks

Viewing 15 replies - 406 through 420 (of 786 total)