Michael Fields
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Displaying children content on parent pageOpps, forget this part which should go at the end of the above code:
/* Restore global $post object. */ $post = $post_backup;Forum: Fixing WordPress
In reply to: Displaying children content on parent pagecrondeau,
It looks like you have nested your loops which is really not necessary. I would try something like the following:<?php /* Query and display the parent. */ if ( have_posts() ) { while ( have_posts() ) { the_post(); the_content(); print "\n\t" . '<hr />'; $thispage=$post->ID; } } /* Query for children. */ $children = get_pages( array( 'post_parent' => $thispage, 'numberposts' => 3, 'orderby' => 'menu_order', 'order' => 'ASC', )); /* Back up global $post object. */ $post_backup = $post; /* Display children pages. */ foreach( (array) $children as $post ) { setup_postdata( $post ); the_title( '<h2>', '</h2>' ); the_content(); print "\n\t" . '<hr />'; } ?>This has definitely crossed my mind before. it may be easily achieved by adding an argument and a filter to the Taxonomy List Shortcode Plugin which would allow you to enable this. Once my latest project is in beta, I will have time to look into this. Great idea!
Hmm, are you sure that this is the only code in your template file? This code should only generate linked images.
riasaurusrex,
Thanks! This is a known quirk of this plugin, unfortunately, there is no way that I can find to add the button there + hide it from all other instances of the media modal box. Any ideas are appreciated.
Thanks,
-MikeForum: Networking WordPress
In reply to: 404 on all newly created network sitesOk,
I think that it is up and running after about 5 attempts 🙂
On my last update attempt, here are all of the steps that I took to resolve:1. Delete all WordPress files from ../public_html/
2. Delete all WordPress tables from my database.
3. Upload fresh files.
4. Install WordPress.
5. *Manually choose “Day and name” permalink structure.
6. Set up multisite following the instructions.
6.1. *Before uploading the modified .htaccess file, I changed the permissions on the live copy to 777. After I uploaded the modified version, I changed the permissions back to 644.Hope someone finds this useful,
-MikeForum: Networking WordPress
In reply to: 404 on all newly created network sitesJust did that and it looks like my .htaccess contains exactly what it should. A few questions:
1. Should WordPress automatically change my permalink settings after I enable multisite?
2. Does multisite expect that I have permalinks set up before activating?
I’ve just reinstalled with a fresh download and clean database and have had no luck… one more time 🙂
Forum: Networking WordPress
In reply to: 404 on all newly created network sitesYou can go get what’s supposed to be in your htaccess file right in the tools -> Network menu.
Great! but it’s exactly the same as what is currently in my ,htaccess file 🙁 Oh, well…. I have verified that the file is being read by the server though.
On another note, the codex article said that I should remove
define('WP_ALLOW_MULTISITE', true);. This will romove the tools -> network link from the admin menu. Just thought that I would bring this up.The fact that the regular permalinks aren’t working is a huge clue. they shoudl work even before you do anything with the network.
I thought that this was strange as well. To be honest, I never setup permalinks, WordPress did this automatically somehow, when I went to tools -> permalinks to set them up, they were already set to “Day and name”. Changing them to default seems to enable the main blog to work, but all of the children are still hidden.
Thanks for your help.
-MikeForum: Plugins
In reply to: [Taxonomy Images] [Plugin: Taxonomy Images BETA] Some suggestionsIn the future, if you have the time, it would be great to have the possibility to change or add new image sizes.
This is actually out of the scope of this plugin. WordPress makes it easy to create new image sizes. I would strongly suggest doing this in a custom plugin. I always create a custom plugin that stores non-theme dependent customizations (taxonomies, post_types, image sizes, etc.). The code is as easy as it gets:
add_action( 'init', 'mysite_custom', 4 ); function mysite_custom() { add_image_size( 'name_for_the_image_size', 20, 20, true ); }the fourth parameter can be either true or false depending on whether you want it to be cropped.
Hope this helps,
-MikeHowever, it doesn’t work when I add it in “function.php” of the child theme, even if I add the global declaration at the top of “function.php”
Are you using the object in a function? if so, you will need to declare it as global inside the function’s definition like:
<?php function my_function(){ global $taxonomy_images_plugin; /* Other stuff */ }Hope this helps,
-MikeForum: Networking WordPress
In reply to: 404 on all newly created network sitesWould anyone be will to post an example of their .htaccess to pastebin? Not all of it just the bit pertinent to WordPress? If not, could you compare what’s in mine to what is in yours and let me know if I am missing anything? I really think that I am because no permalinks are working.
Forum: Networking WordPress
In reply to: 404 on all newly created network sitesworldblogosphere,
Thanks, but I can’t even get there 🙂 In your htaccess file, do you have the ‘normal’ code the WordPress adds for “single site”? Mine does not.Forum: Networking WordPress
In reply to: 404 on all newly created network sitesandrea_r,
Thanks for the fast reply. I’m on the phone with support right now. and I think that your right with the .htaccess being the root of the problem. What is the bare minimum code that should appear in .htaccess? I don’t seem to have enough in there. Also permalinks are not working on my main blog: http://mfields.org/. Here’s what it looks like: http://wordpress.pastebin.com/Mh470EuWThanks!
Forum: Plugins
In reply to: [Taxonomy Images] [Plugin: Taxonomy Images BETA] PromisingWordPress has built-in functionality to associate any taxonomy with any post_type. So, in theory, you could create a taxonomy called ‘gallery’ and assign it to the ‘attachments’ post type thus allowing images to appear in multiple galleries.
Try this at the top of your theme file:
global $taxonomy_images_plugin;