F?rat Akandere
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Comment Textarea Above Fields@glueckpress, thanks for the link!
That can be achieved using pure CSS.
@esmi I’d like to see that too ??
Forum: Plugins
In reply to: [Google Authenticator] Deprecated function "get_userdatabylogin"Also line 174;
if ( trim(get_user_option( 'googleauthenticator_enabled', $user->ID ) ) == 'enabled' ) {
Should be replaced with:
if ( isset( $user->ID ) && trim(get_user_option( 'googleauthenticator_enabled', $user->ID ) ) == 'enabled' ) {
Otherwise, it throws a notice error that the line is trying to get property of non-object on login screen since the get_user_by function return boolean(false) when the user is not logged in.
Thanks,
F?ratForum: Themes and Templates
In reply to: [Customizr] Adding Meta tags to your siteWordPress SEO by Yoast (written in the picture). It is the meta “description” field, where you’re supposed to describe your post in with 160 (optimal) characters. “Focus keywords” area is where you’re looking for. Yes, you should separate them with commas.
Forum: Themes and Templates
In reply to: [Customizr] Adding Meta tags to your siteTo your template’s header.php file or install a SEO plugin, which helps you to add meta keywords.
Forum: Fixing WordPress
In reply to: Syntax Error – WordPress DashboardDownload the latest version of WordPress. Upload everything (except wp-content) to your hosting via FTP.
Forum: Fixing WordPress
In reply to: A new 500 internal errorThe cause may be server configuration. To test it;
-remove/rename the .htaccess file in the root path (like, a.htaccess)
-create an html file in the root path, let’s say test.html
Try to access test.html file;
https://www.toysandcards.co.uk/test.htmlIf you’re still getting the error code 500, contact your hosting provider.
Forum: Fixing WordPress
In reply to: Reverse order of postsThere is a line in my code like this:
$asc_order = new WP_Query( array( 'order' => 'ASC') );
Replace it with
$asc_order = new WP_Query( array( 'order' => 'ASC', 'cat=37' ) );
Forum: Fixing WordPress
In reply to: I can't aces by admin panel after modifying the functions.php fileEdit: Download the WordPress version you use. Re-upload wp-includes/functions.php file. You should edit the functions.php file which is placed in your TEMPLATE DIRECTORY, not in the wp-includes. (unless you’re doing a core hack.)
In tutorial, he asks you to change your template’s functions file, but you edited core functions.php file (also have a syntax error). Re-upload the wp-includes/functions.php file and it’s done. Obviously, there’s nothing wrong with
db_version
etc. >.>@esmi, he didnt change the template functions.php file. Changing theme won’t work. Check the error code. Seems he edited the ‘core’ functions.php (wp-includes/functions.php) file.
Forum: Fixing WordPress
In reply to: Reverse order of posts<?php $asc_order = new WP_Query( array( 'order' => 'ASC') ); if ( $asc_order->have_posts() ) : ?> <ul> <?php while ( $asc_order->have_posts() ) : $asc_order->the_post(); ?> <li> <a>"> <strong><?php the_time('j M Y');?>:</strong> <?php the_title(); ?> </a> </p> </li> <?php endwhile; // end of the loop. ?> </ul> <?php endif; /* Restore original Post Data */ wp_reset_postdata(); ?>
For more info, here you go:
https://codex.www.ads-software.com/Class_Reference/WP_QueryBy the way, your html has some mistakes. I didn’t fix them, only added PHP codes you need. I hope I could give the idea
Forum: Themes and Templates
In reply to: Comment Textarea Above FieldsThere is no legit way to move textarea (the big box where you write down your comment) above the fields (name/website/email). You can customize everything like fields, form name, id etc. But changing the position of textarea, it does not exist.
Forum: Fixing WordPress
In reply to: White Screen after tweaking functions.php fileYou’re welcome. Do not forget to flag the topic as “resolved” from the right side.
Forum: Themes and Templates
In reply to: Comment Textarea Above FieldsProblem solved. But there should be a better way to do it instead of putting textarea to the
comment_notes_before
I wonder which parameter you were talking about. There is no legit way to do it…
Forum: Themes and Templates
In reply to: Comment Textarea Above FieldsEdit: Well not a really god way but i made empty
comment_field
argument and put its default value tocomment_notes_before
argument. At least it gives me what I want.Forum: Fixing WordPress
In reply to: Logging In ProblemEdit: If you can access the FTP. Go this directory:
wp-content/plugins
and delete the
twitter
folder.Forum: Fixing WordPress
In reply to: White Screen after tweaking functions.php fileCan you check whether display_errors is on from phpinfo()? Blank white screen usually happens when you upload a broken PHP code and display_errors is off. The system cannot show the errors since display_errors is off so all you get is a blank white screen.
FTP and WordPress admin panel login informations (username/password) are 99.9% different. I suggest you to contact your hosting provider to get your FTP information. They may have already sent it to your email, so check your inbox before.
Yes, you are doing the right thing to get back into your website. Re-uploading the working theme will get back your website.