Ian
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Content Encoding Errorhmm.. I’ve been with Dreamhost a while and they’ve generally been pretty good with not laughing at me – I’ll contact them and see what they say.
Forum: Fixing WordPress
In reply to: Content Encoding Errorhmm.. I tried lowering the post counts to really reasonable levels per page (like 100 or even 10) and I still got the error from time to time. I’ve been doing a little more research and found a comment that said this:
This problem occurs if use a Text Editor which supports another Character Encoding which has not been defined in your website’s either language/languagename.php or other page wherever you have defined Character Encoding type. To overcome this problem you just need to write your code that support the character encoding type. eg earlier I was using Dreamweaver, later I used Microsoft Expression Web the problem start occuring. I just replaced the file written in Dreamweaver, the problem was solved..
Do you think this might have something to do with it? I imported a lot of my content from excel files, plus had some pasted from other documents where I had written it previously. I know that some of the date “-” dashes don’t display correctly and show up as diamond ? type thing or not at all… might that have something to do with it?
Is there some way to clean my code before it is displayed? some kind of filter?
Forum: Fixing WordPress
In reply to: Next Page and Previous Page and Category Exclude problemThis thread also helped me out – I didn’t really know about the “paged” thing. Seems to be working right now. Thanks!
Forum: Fixing WordPress
In reply to: object tag based placeholder images not working in ieI thought that maybe I could set an actual 404 image with an htaccess or something like that, but it doesn’t seem to work with wordpress. is there a plugin for that or something?
Forum: Themes and Templates
In reply to: How to sort Posts (or Pages) by title while in admin panelWorked for me! thank you!
Forum: Plugins
In reply to: Display Posts As Ascending Order in Admin PanelPerfect, I just changed the plugin to say date and it worked!
<?php /* Plugin Name: Set Post Order In Admin Version: 0.1 Plugin URI: https://www.ads-software.com/support/topic/336715/ Description: In Posts->Edit, display posts in date order. Author: MichaelH Author URI: https://codex.www.ads-software.com/User:MichaelH/MyPlugins */ function set_post_order_in_admin( $wp_query ) { if ( is_admin() ) { $wp_query->set( 'orderby', 'date' ); $wp_query->set( 'order', 'ASC' ); } } add_filter('pre_get_posts', 'set_post_order_in_admin' ); ?>
Forum: Fixing WordPress
In reply to: Content Encoding ErrorIs there any other way you could think of besides that? I’d love if I could still ctrl-f to find the title of any entry on the timeline.
Forum: Fixing WordPress
In reply to: Content Encoding Erroryeah that makes a lot of sense.
I want to implement an infinite scroll type thing but I haven’t been able to get it working. maybe if I got that going it would fix the problem?
Forum: Fixing WordPress
In reply to: Echo Taxonomy Slugaha! I think I figured it out. this is what I ended up doing:
<?php if ( is_tax('creator') ) { $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo ' <OBJECT data="https://www.tradereadingorder.com/creator-image/' . $term->slug . '.jpg" type="image/jpg"><!-- Else, try the 404 image --> <OBJECT data="https://www.tradereadingorder.com/404.jpg" type="image/jpg"> </OBJECT> </OBJECT>'; } ?>
It seems to work. And also, the sections are separate for each kind of taxonomy now, which works for me, in case I ever want to further customize them!
Forum: Fixing WordPress
In reply to: Echo Taxonomy SlugI’m a little confused I guess. I’ll start from the top – I’m trying to modify this code to work with my custom taxonomies, just as it’s already working with my tags..
<?php if ( is_tag() ) { $term_id = get_query_var('tag_id'); $taxonomy = 'post_tag'; $args ='include=' . $term_id; $terms = get_terms( $taxonomy, $args ); echo ' <OBJECT data="https://www.tradereadingorder.com/character-image/' . $terms[0]->slug . '.jpg" type="image/jpg"><!-- Else, try the 404 image --> <OBJECT data="https://www.tradereadingorder.com/404.jpg" type="image/jpg"> </OBJECT> </OBJECT>'; } ?>
Forum: Fixing WordPress
In reply to: Echo Taxonomy Slugyeah this would be for at the start of my index, so if it’s a taxonomy archive page, it displays an image named after the slug of that taxonomy.
so am I supposed to use is_tax to get the slug instead of is_taxonomy?
Forum: Fixing WordPress
In reply to: Echo Taxonomy Slugclose! in fact, yourtax->label helped me solve the folder naming problem I was having. but I still need to be able to display the term.. this is what I’ve got so far (without trying michael’s stuff yet)
<?php if ( is_taxonomy($taxonomy) ) { $yourtax = get_taxonomy ($taxonomy); echo ' <OBJECT data="https://www.tradereadingorder.com/' . $yourtax->name . '-image/' . example-slug-here . '.jpg" type="image/jpg"><!-- Else, try the 404 image --> <OBJECT data="https://www.tradereadingorder.com/404.jpg" type="image/jpg"> </OBJECT> </OBJECT>'; } ?>
Forum: Plugins
In reply to: sort posts by custom field IN BACKENDIs there any way I could use this to sort it by date in ascending order?
Forum: Fixing WordPress
In reply to: Search Custom Field Data?hmm, well I thought it was working and then it sort of… stopped. I’m not really sure what’s going on with this? sometimes it seems to find all the results I want, and then sometimes it just doesn’t find anything!
Forum: Plugins
In reply to: Second set of tags?Managed to get it by tweaking the scripts found on the above page.
If you do it, it’s fairly straightforward if you understand the code (I just have to figure it out every time because I really don’t know the basics haha).
Just keep a backup of your functions.php so you can restore it if you ruin something! Editing it through the admin panel won’t be possible if you mess up!