jimmyt1988
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Pagination for tagsAppreciated.
Forum: Fixing WordPress
In reply to: Pagination for tagsWell.. how am i suppose to get my code back now? IS this a joke? I have been using these forums for about 3 years now. always use pastebin when i have huge amounts of code. I cannot believe this! I’m offended.
EDIT: I require the existing code.. I’ve unfortuantely not got a copy of it. Where can I find it?
Forum: Fixing WordPress
In reply to: Pagination for tagsYea actually. How do i put pagination into that though?
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
I have this to no avail. The idea is to paginate my posts using the lovely premade wordpress thingy ma bobby.
Forum: Fixing WordPress
In reply to: Pagination for tagsI have found the problem… In my wordpress settings it has display 99 posts per page.. (Which i require for some pages)… If I change it to 5 per page, it works but stops other pages from showing that many posts.
I have found some workaround but cannot get it to work for one page:
add_action( 'init', 'childtheme_modify_posts_per_page', 0); function childtheme_modify_posts_per_page() { add_filter( 'option_posts_per_page', 'childtheme_option_posts_per_page' ); } function childtheme_option_posts_per_page( $value ) { return 5; }
Oh god this is a nightmare.
keesiemeijer are you suggesting that rather than using query_posts.. writing the custom new WP_Query solves this problem?
Forum: Fixing WordPress
In reply to: Pagination for tagsOk. I have found out that “&paged=2” is the issue here. Whent hat is attached. it’s throwing up a page not found. Any bugs recorded for this?
I’m still stuck on this. Any ideas?
Forum: Themes and Templates
In reply to: How do I load different style sheets?Well.. You could add <link href = “home_style.css” type = “text/css” rel = “stylesheet” /> to the index.php file and add the other to the generic page.php file
That means that when index.php is called (home page), itll display that style. and visa versa.
Just take it out of the head.
Hope that works ^_^
Forum: Fixing WordPress
In reply to: How to add a tweet, google 1, recommend and email buttons?This bit of code needs to be placed within your template php files. You might need a bit of know how actually, perhaps this isn’t the technique for you. Perhaps someone knows a pre-made plugin ??
Forum: Hacks
In reply to: Count Of Posts in Given Category With Specific Custom Metatoneburst… sorry about that. I was flicking through posts and came up with the fastest solution i could think of. I can prepare a mysql join for u if i remember to tune back in tonight.
Forum: Hacks
In reply to: Count Of Posts in Given Category With Specific Custom Meta<?php $categories = get_categories( $args ); $counter = 0; foreach($categories as $post){ setup_postdata($post); $meta_query = get_post_meta($post->ID, 'name_of_meta_tag', true); if($meta_query){ if($meta_query == "whatever"){ $counter++; } } } echo $counter; ?>
Forum: Fixing WordPress
In reply to: White Page after upgrading to 3.3.2Your best bet is to ask your hosting provider to let you see the error log for your page.
It will give you the error code/line number the error occurs (which is most likely generating the white screen of death).
Please post that error when you find the error log.
Forum: Fixing WordPress
In reply to: How to add a tweet, google 1, recommend and email buttons?Put this code where you want the like buttons to appear:
<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style addthis_32x32_style"> <a class="addthis_button_preferred_1"></a> <a class="addthis_button_preferred_2"></a> <a class="addthis_button_preferred_3"></a> <a class="addthis_button_preferred_4"></a> <a class="addthis_button_compact"></a> <a class="addthis_counter addthis_bubble_style"></a> </div> <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4fabe2b64bd423b7"></script> <!-- AddThis Button END -->
source: https://www.addthis.com/get/sharing?frm=hp#.T6vitutYvwA
Forum: Themes and Templates
In reply to: How do I load different style sheets?<?php if(is_home()){ ?> <link href = "home_style.css" type = "text/css" rel = "stylesheet" /> <?php }else{ ?> <link href = "other_style.css" type = "text/css" rel = "stylesheet" /> <?php } ?>
Forum: Plugins
In reply to: [MailPress] [Plugin: MailPress] Headers already sent errorThis error is usually found when a re-direct or session cookie change is being done after ANY html has been output to the page.
for example
<p>Hi everyone</p> <?php header('Location: url'); ?>
Will create that same header problem.
I hope that helps you find the problem.
Forum: Fixing WordPress
In reply to: @font-face not working? Not doing it correctly?This is the CSS:
@font-face { font-family: calibri; src: url("fonts/calibri.eot") /* EOT file for IE */ } @font-face { font-family: calibri; src: url("fonts/calibri.ttf") /* TTF file for CSS3 browsers */ }
To use it:
.whatever_class{ font-family:calibri; }
That’s all you need to do (Obviously get a ttf and eot version of your font, upload them to your font folder wherever it may be and tweak the url as required)