Michael Fields
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Plugin: Sociable] How do you resize the images so they are larger?No worries man… glad I could help.
Forum: Plugins
In reply to: foreach() ProblemTo my knowledge “foreach” is not and probably never will be depreciated… The following code worked fine in my development server:
$slug = 'design'; $myposts = get_posts('category_name=' . $slug . '&numberposts=-1'); foreach($myposts as $post) { the_title(); print '<br />'; }Which leads me to believe that there is an issue with your call to:
$slug = get_post_meta( get_the_ID(), "info", true );I think that get_the_id() will only work in or after the Loop, Please try
intval( $post->ID )instead. If that doesn’t work, try printing out the value of $slug to the screen.Best of luck,
-MikeForum: Plugins
In reply to: Adding images to short posts…Yep, Try using the second block of code that I posted in this thread:
http://ww.wp.xz.cn/support/topic/209656Forum: Fixing WordPress
In reply to: [Plugin: Sociable] How do you resize the images so they are larger?open sociable.css and try changing the following height and with values to 50px. This is on line 30 of version 3.1.1:
.sociable img { float: none; width: 16px; height: 16px; border: 0; margin: 0; padding: 0; }Forum: Everything else WordPress
In reply to: How do I get rid of 8 space tabs???Just copy and paste the source into a text editor where you control the tab settings – a good editor will have settings allowing you to alter the size of the tabs…
Forum: Everything else WordPress
In reply to: How do I get rid of 8 space tabs???Hmmm… interesting question.
I did a google search and it appears that there is no solution to this problem. Please read the following forum threads:
http://forums.digitalpoint.com/showthread.php?t=1115214
http://www.velocityreviews.com/forums/t161740-tab-size-in-a-textarea.html
http://www.webmasterworld.com/forum21/9578.htm
http://www.codingforums.com/archive/index.php/t-152775.html
http://www.killersites.com/mvnforum/mvnforum/viewthread?thread=12966
http://www.openbluhost.com/html/14318-tab-size-textareaThis is not so much a WordPress problem as it is a basic html issue. WordPress opens and prints the contents of each theme file into a textarea element. The tab size of that element seems to be dependent upon your web browser. In all my experience with css I have never come across a property that allows for the tab size to be altered.
If this problem was bothering me, I would do the following:
Download your theme and use a text editor to find and replace all tabs with double spaces in every file and then upload it to your server.
best of luck,
-MikeForum: Fixing WordPress
In reply to: Allow to post without loginIt looks like this plugin will get you where you need to be:
http://ww.wp.xz.cn/extend/plugins/tdo-mini-forms/Forum: Fixing WordPress
In reply to: inconsistent commentsI just set up a blog with a similar scenario; many admins who should get emailed when comments are placed. I believe that WordPress will onlt email one address when this happens -> This address is can be found under “Settings” -> “General” -> “Email Address”.
My solution was to create a new email address that will forward all mail to myself as well as the other two Admins.
Hope this helps,
-MikeForum: Everything else WordPress
In reply to: adding custom codeI got a 404 on that link. A simple solution would be to add the following code to you theme’s functions.php file:
add_action( 'wp_head', 'print_my_script' ); function print_my_script() { if( is_page( 14 ) ) { print '<script type="text/javascript"></script>'; } }you will want to change 14 to the page ID of the page that needs the script included.
Forum: Themes and Templates
In reply to: how to remove ads from bottom (photoblog theme)Open: /wp-content/themes/photoblog/footer.php
you will see this code:
<div id="footer">Powered by <a href="http://ww.wp.xz.cn/">WordPress</a>. <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a> and <a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>. <br />Theme by <a href="http://www.blogohblog.com">Blog Oh Blog</a>Delete this part:
<br />Theme by <a href="http://www.blogohblog.com">Blog Oh Blog</a>Forum: Plugins
In reply to: Conditional tag helpNo problem skipper!
Forum: Themes and Templates
In reply to: How can i hide “posted in”?There are other Theme files that can include the loop. You7 will need to comment out ( or delete ) the same code in the following files ( if present ):
category.php
archive.php
search.php
single.php
image.phpForum: Plugins
In reply to: Gallery plugin other than nextgen!Have you looked into the built in Gallery Shortcode? This is probably the easiest way to upload and display images in your sister’s WordPress blog.
Forum: Plugins
In reply to: no includes in wordpressIf you are talking about theme files it is due to the fact that these files are included elsewhere in WordPress. Every page view in a WordPress installation is handled by index.php which includes wp-blog-header.php which includes /include/template-loader.php which will load a template file from your active theme based on template hierarchy.
Forum: Plugins
In reply to: Conditional tag helpYour php code is wrong – you have nested your
<?php ?>blocks as well as put a function that prints a string inside of a string. Please try the following code:<?php if (is_page("disclaimer")) { echo '<div id="header" style="background:url(' . get_bloginfo('url') . '/wp-content/themes/themename/images/top2.jpg) no-repeat bottom; ">'; } else { echo '<div id="header" style="background:url(' . get_bloginfo('url') . '/wp-content/themes/themename/images/top.jpg) no-repeat bottom; ">'; } ?>