Ramesh (thecodeisclear)
Forum Replies Created
-
Forum: Plugins
In reply to: prepare() function issuesHi,
From the first link you gave, I think you don’t need a prepare call at all (since no arguments are being passed)
You could replace the line after
//the sqllike this$th_vers = $wpdb->get_var( "SELECT th_vers FROM $table WHERE id = 1 LIMIT 0,1" );this should get rid of the warning.
Forum: Fixing WordPress
In reply to: Htaccess issueDon’t remove the .htaccess file, but open it and remove the
Redirect 301instruction. You can actually empty it out and have WP add the rewrite rules again (Settings -> Permalinks)Since the site has been hacked, (the hacker has got access to your hosted folder), change your cPanel, FTP and webhost login passwords to prevent recurrence. Also, inform your webhost so that if there are any server level vulnerabilities, they can have a look.
PS: My site was hacked 2 days ago, so I can understand what you are going through.
Forum: Fixing WordPress
In reply to: justification in wordpress previewOk. I just opened the theme’s CSS file and I can see that you can do CSS changes via the
Theme Options > Miscellaneous > CSS Overridesmenu.Add the code that I suggested in that page and you should be able to fix this for all your posts without any plugins.
Forum: Fixing WordPress
In reply to: justification in wordpress previewActually, the post status is not the problem. On the main page, the preview text is within the div class called
blog_textand on the single post page, it isblog_post.Rather than inline CSS edits, I would suggest to use a custom CSS plugin such as https://wordpress.org/plugins/simple-custom-css/ and include the following code
.blog_text { text-align: justify; } .blog_post { text-align: justify; }PS: This will affect all posts. If you are looking for making this change only in a fixed number of posts, you will have to update the custom CSS accordingly.
Forum: Fixing WordPress
In reply to: justification in wordpress previewCan you please post a link to the content? By clicking on read more, you are redirected to a new page right? I mean, the preview would be on one url and the read-more takes you to the entire post content.
Forum: Fixing WordPress
In reply to: justification in wordpress previewHi,
I think what you are seeing is that the post extract is not justified while the entire post content is. Usually, they are bound by different
divclasses. Right click on the page source, find the enclosed class name and you can make changes to the CSS to justify this text as well.Hope this helps,
RameshPS: If you can post a link, I can give you the exact class names to be changed.
Forum: Fixing WordPress
In reply to: How to delete cropped images?I think you need to regenerate your thumbnails. What has happened is that you have also deleted the default sizes WordPress resizes images to (i.e. thumbnail -> This is what is shown in the Media Library, medium and large).
Regenerating the thumbnails should fix this problem. Please use the plugin I had linked earlier. Here are addln. details on the default image sizes.
PS: In this file list (http://1drv.ms/1xe4jvi), the files ending with 150×150, 300×169 and 1024×576 are WP defaults
Forum: Fixing WordPress
In reply to: Resizing images all at onceThe image size you need to resize to depends on where the images are used and what are the image sizes supported by your theme.
If you are including them in post content for display purposes, your image need not be wider than the size of the
diventry-content. In my personal opinion, I think images need not be wider than 960px.What is the theme you are using, if it is a free theme, I can have a look at the code and tell you the sizes the theme supports.
Forum: Fixing WordPress
In reply to: Can't make Featured Image work!From what I gather of your post, it appears that your theme does not support featured images. (more details here). Updating TheLoop will not help if you were not able to add the featured image in the first place.
Like Mark mentioned above, a link to your site will help.
Forum: Fixing WordPress
In reply to: How to delete cropped images?By removing the code, are you referring to instances where the theme has added a
add_image_sizefunction?I think this thumbnail would help (https://wordpress.org/support/plugin/regenerate-thumbnails)
PS: Sorry, at work now, so I can’t see your image screenshots (firewall), so I can’t be 100% sure that my suggestion works.
Forum: Fixing WordPress
In reply to: Change displayed author information from email to nicknameHi,
Thanks for posting the link. I can see the problem now. Here is what you can do
- Go to your profile – http://www.bitcoinhighroller.com/wp-admin/profile.php
- In the dropdown
Display name publicly as, select some other option than the one that is your email - If you do not have more than one option, update the field
Nickname (required)to something of your choice and save your profile - Now the dropdown should have the new value from field Nickname
Let me know if this helps.
Thanks,
RameshForum: Fixing WordPress
In reply to: colored boxI think you can use the Shortcodes Ultimate plugin to insert various types of contents (boxes, buttons, notes, spoilers etc.)
Forum: Fixing WordPress
In reply to: ID overlap between posts & pages?Yes, I believe so. There is a field
post_typeto modify your query accordingly. Here are a couple of links that give more detailsFrom the Codex: https://codex.wordpress.org/Template_Tags/get_posts
Some examples usingget_posts: https://code.google.com/p/wordpress-custom-content-type-manager/wiki/get_posts_examplesForum: Fixing WordPress
In reply to: Change displayed author information from email to nicknameWhat is the theme that you are using? Please send a link. This could be due to the theme’s features and quite possible fixed by a simple code change.
Forum: Fixing WordPress
In reply to: WP login has disappearedHi,
If you have access to the database (for e.g. via phpMyAdmin), you can revert the theme to one of the default themes – twentyfifteen or twentyfourteen. Here is a quick walkthrough:
- Access your wordpress database and open the
wp_optionstable - Scan the rows for key value
templateandstylesheet - Change the value to twentyfourteen or twentyfifteen (for both rows)
Details instructions with images here
I think you should be able to login now.