Artur Bobinski
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Recent Posts Widget is not appearing?Hi,
Try removing that slider widget and see if your other widget comes back. If so, slider widget is breaking the code. If its custom widget in functions.php file, check your code for the slider widget. If its a Plugin type widget, you can try fixing it or bringing it to the attention of the developer that created the plugin in hopes for a fix.
Starting by removing the slider widget, since stuff started missing after updating it, would a good place to begin.
Thanks,
ArturForum: Fixing WordPress
In reply to: return count of years in queryHi,
You mean to echo a posts age?
Thanks,
ArturForum: Fixing WordPress
In reply to: Database problemsHi
Sorry to hear your having problems with the database. If you have a good backup of your database I would 1.) go into PHPMyAdmin and delete all tables. Tables only not the database. 2.) I would import the backed up sql file. 3.) made sure that the database has the right url in options table. 4.) made sure that wp-config.php has the right database url (localhost normally), database name, database user, database password. Also it’s good to check that under PHPMyAdmin privileges your user has right permissions set.
After that just reload the site and see if it works. It might or might not ask to update the database. If it does, proceed with updating.
If properly import and the backup was properly exported, deleting all tables and reloading new DB file will make sure that your not just loading stuff into a corrupt table but you have a fresh new one.
Hope that helps, let us know.
Thank you
ArturForum: Fixing WordPress
In reply to: Recent Posts Widget is not appearing?Hi,
Have you made any changes to your template?
Thanks
ArturForum: Fixing WordPress
In reply to: Can't upload Media imagesHi,
You guys can also try and adding a new acceptable file upload type by adding this into functions.php file;
function my_pdf($mime_types){ $mime_types['pdf'] = 'text/pdf'; return $mime_types; } add_filter('upload_mimes', ' my_pdf', 1, 1);
This might work and fix the above issue. The HTTP error from my experience usually was a bad plugin or permission issue with directories. Further down it could be possible that the HTTP (apache) server isn’t allow to upload certain file or doesn’t have permissions. It’s hard to know exactly without looking at the server logs to see what’s happening.
That said, just brain storming here and your HTTP error could also be a result of upload cap; check your php.ini file if you can to see what the upload_size is. You can find more information here that will help with that part to increase; https://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/
Hope any of this helps.
Thank you,
ArturForum: Fixing WordPress
In reply to: Blog Post Page AttributesHi @markmjmills,
Well, it will take a little technical because you’d have to edit a few files to make this customized a little. We’d have to use the IF statement and tell WordPress to load either a.) a different header.php file or b.) if you know which element you don’t want to show on blog article pages and blog index page we can just take that part out of the header.php file.
Now looking at your website you have few elements in the header we can take out without completely removing it. Here’s a screenshot of maybe what to keep on blog pages and blog index page, let me know what you think and I can see if I can work an example code for you to post here. That way you can grab it and place it within the header.php file.
https://www.awesomescreenshot.com/image/1132822/cce5ff17b87e85fb7fee3feae93bf82b
Thank you, have a good weekend.
Regards,
ArturForum: Fixing WordPress
In reply to: Post Type no indexingHi,
Go to your website and right click, then click on “View Page Source” and search for a line similar to this;
<meta name='robots' content='noindex,nofollow' />
If you do have that line then your theme either sets it in which would be within the header.php or you simply have the options in WordPress admin panel … Settings -> Reading -> Discourage Search Engines From Indexing Your Site.
Here’s a screenshot of it; https://www.wpkb.com/wp-content/uploads/2013/09/discourage-seach-engines-from-indexing-this-site.png
Hope that helps.
Thank you, have a good weekend.
Cheers
ArturForum: Fixing WordPress
In reply to: How to check for post category outside the loopHi
Glad to hear its working. Yeah I surprised to hear that “in_category” wasn’t working for you. Glad it does though.
Have a good weekend.
Cheers
ArturForum: Fixing WordPress
In reply to: How to check for post category outside the loopHi,
How about:
<?php $cat-term = get_term_by('name', 'name of category', 'category'); if($cat-term != false ){ if($cat-term->count > 0 ){ ?>
That will just pick up the slug of the post
Forum: Fixing WordPress
In reply to: Post Type no indexingHi,
Are other pages indexed?
Thanks,
Artur BobinskiForum: Fixing WordPress
In reply to: Blog Post Page AttributesHi,
You are referring to the header. Basically everything above the first article of your /blog/ page. Correct?
Forum: Fixing WordPress
In reply to: How to randomize featured image for specific post?How many images in total would you like to upload per post and rotate?
Forum: Fixing WordPress
In reply to: Can't upload Media imagesThat said, it could also be one of your newly installed plugins, if you’ve installed any 2 days ago. ??
Forum: Fixing WordPress
In reply to: Can't upload Media imagesI would check your error logs in your control panel, if I’m right its doing it because your permissions or ownership of the “upload” directory is incorrect.
Hope that helps.
Forum: Fixing WordPress
In reply to: How to randomize featured image for specific post?So, if I understand correctly, you want the sticky/featured post to have more then one featured image, and when it displays on homepage, each time you hit reload, it randomly selects one of those images and displays it for that article?
Right?