Andy Potanin
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Insert gallery contents into templateYes, you should be able to do something like this:
<?php
if(is_post(X)) { echo apply_filters(‘the_content’, ‘[gallery=1]’); }
if(is_post(X)) { echo apply_filters(‘the_content’, ‘[gallery=2]’); }
if(is_post(X)) { echo apply_filters(‘the_content’, ‘[gallery=3]’); }
?>Where X would be different post/page IDs.
Forum: Requests and Feedback
In reply to: Flash Upload Not working in Latest 2.7 verBe sure that you have swfupload.swf in wp-includes/js/swfupload/
If not, download and extract it from here: https://swfupload.googlecode.com/files/SWFUpload%20v2.2.0%20Beta%203%20Core.zip
That was the problem with all of my sites that I upgraded to my WP 2.7.
Good luck.
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Insert gallery contents into templateI don’t think NextGEN has any functions you can put into your template files to display its galleries/slideshows/etc. However, you can do the following:
<?php
$custom_gallery_content = ‘[gallery=1]’;
echo apply_filters(‘the_content’, $custom_gallery_content);
?>Obviously, $custom_gallery_content can be whatever tags you would use within a post/page to display your gallery.
Hopefully this helps somebody else out.
Forum: Your WordPress
In reply to: Feedback for first time designVery nice job. Really can’t offer any constructive criticism from an aesthetical perspective – at first glance I see nothing wrong with it.
Only thing I can think off is using a meta tag plugin. All In One SEO Pack does the trick.
Also: no sitemap, 404 page is dull.
Other than that looks good.
Forum: Installing WordPress
In reply to: wp-settings.php on line 212 – For 2.6 UpgradeI just had this problem, for some reason some files didn’t upload properly – these things happen.
I have a lot of clients, and I use WordPress for almost all of them. Here’s how I systematically upgrade multiple sites:
1) Build a special zip file with the new version of WordPress. I delete the wp-content folder and the wp-config-sample.php. I may leave the wp-content folder if I want to upload a set of new plugins that I intend to use, but delete the theme folder.
2) On the host – delete all folders and files with the exception of wp-content folder, wp-config.php, and .htaccess (if you’re running WP from the root folder).
3) Upload the ZIP file to your host, unpack everything.
4) Ta-da.
Forum: Themes and Templates
In reply to: Page Templates in WordPress 2.5?!I had the same problem.
Switching to a different template and then back to the one you are working with fixed the problem for me.
Good call kb241.
Forum: Fixing WordPress
In reply to: HOWTO: Disable blogrolli’ve used this plugin:
https://barunsingh.com/software/custom-admin-menu/
before to customize the admin menu. not sure if its compatible with the very latest version of wordpress, let me know if it works for you.
Forum: Fixing WordPress
In reply to: forgot passwordif you forgot your password but have access to phpmyadmin, here’s what you can do:
go here https://www.johnmaguire.us/tools/hashcalc/ and type in a new password (this should be a temporary one)
then you will get a list of hashed passwords on next page, copy and paste the MD5 since thats what wordpress uses.
Example: the word ‘password’ would look like this: 5f4dcc3b5aa765d61d8327deb882cf99Then open up phpmyadmin, go to user table, find “admin” and copy and paste the hash into the password field.
Then login with the word you hashed, ‘password’ in my case.