Jeremy Pry
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Theme working on one blog but not another in IEI would recommend fixing your validation errors first.
- 14 errors, 2 warnings on news.perksconsulting.com
- 17 errors, 2 warnings on perksconsulting.com/press
- 72 errors, 2 warnings on blog.perksconsulting.com
(courtesy of validator.w3.org)
Forum: Fixing WordPress
In reply to: Best Practice – Magazine-style Multiblog?A good idea would be to use categories for your posts, and then set up certain pages to display only certain categories. Let’s say for example you have categories “News”, “Articles”, and “Opinion”. For the “News” page, you can use
query_posts()
right before the loop, something like this:query_posts('category_name=news'); if ((have_posts()) : while (have_posts()) : the_post(); /* php/html for posts in the loop */ endwhile; endif;
For pages such as the home page, where you need to display all the categories or multiple categories, I’d recommend using multiple loops. Here’s an example of one of the loops:
$news_query = new WP_Query('category_name=news'); if ($news_query -> have_posts()) : while ($new_query -> have_posts()) : $news_query -> the_post(); /* php/html for posts in the loop */ endwhile; endif;
You can create as many new queries (and therefore loops) as you need for each category.
Hope that helps.
Forum: Fixing WordPress
In reply to: Want to hand write a form, PHP post function problemsYes, the problem is that the PHP isn’t being read, but it’s not being read because it’s not looking in the right place. There is obviously a difference in location between what you posted and what I posted.
While the concept of the solution is straightforward, actually implementing it can be a little more complicated. In essence, the solution is to just point it to the correct location of the script processing file. Here’s where it can get a bit more complicated: how you actually point it to the right file. If you want to leave all your files in the location that they are currently in, then you need to modify the action attribute of your form to point to the correct processing file. You can do this manually, or even better, you can take advantage of WordPress to do it for you (somewhat). Here’s how you would do that:
action="<?php get_bloginfo('template_directory'); ?>/assets/inc/contact.inc.php"
Another option is to change how you go about displaying your form altogether. Here’s the method I use on a site that I recently completed. Here’s the link if you want to see it in context. Here’s the code so you can see how it is structured:
<?php /* * Template Name: Volunteer */ get_header(); ?> <div id="content" class="widecolumn"> <?php if (isset($_POST['submitted'])) { ?> <div class="post"> <div id="entry"> <?php require('volunteer.inc'); ?> </div> </div> <?php } else { if (isset($_POST['Email'])) { $value = $_POST['Email']; $value = strip_tags($value); $_POST['Email'] = $value; } ?> <h1>Volunteer</h1> <div class="post"> <div id="entry"> <?php require('volunteer_form.inc'); ?> </div> </div> <?php } ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
This file is a page template, so I just need to select this template for use with that particular page in WordPress. The reason I can use the two include files without the full path is because I have set up my php.ini file to the location of the include files, and I have set it up so that it is only accessible from the server, not from the website itself. This has the added benefit of being slightly more secure. Also worth noting, it allows the code to be processed by the same php file, which you can see if you look at the source code of the form.
Hopefully this helps give you some ideas on how to get yours working how you want it to work.
Forum: Fixing WordPress
In reply to: 2.9.2 site hacked@dinellh: I’ve never used GoDaddy, so I can’t give a direct comparison, but I do currently use Hostmonster, and I haven’t had any real problems with them. Some of my minor issues (which were usually my own misunderstanding on something) they helped me with very quickly, and I am very satisfied with their service.
They also have 1 click installation of WordPress and plenty of other popular open source projects.
Forum: Fixing WordPress
In reply to: “Internet Explorer cannot display the webpage” – frequentlyI, too, have tried many times to get the same error message, but I have been unable to get IE7 to tell me that your website cannot be displayed. I certainly believe that you are seeing a problem, but in my opinion, there isn’t any specific evidence that the issue is with WordPress itself.
Maybe we could do some process of elimination. Try building a very simple PHP based website that resembles your current WordPress site. I say “very simple”, because I know that recreating even part of a site, let alone all of it, can be very time consuming, and our goal is obviously to solve the problem, not waste time redoing your work.
For this, I would recommend creating just one page in its entirety as best as you can. There doesn’t have to be much content to it, but it should have the same layout, styling, navigation, etc. that is found in one of your current WordPress pages. The point to this is to see whether your simple non-WordPress website also displays the same problem.
Give that a shot and let us know how it works.
Forum: Fixing WordPress
In reply to: query_posts & multiple categoriesThe specifics would depend on how you’re actually trying to display the content. If you want one loop to display all of those categories, then your code would be
query_posts('cat=8,6,4,3');
If you want separate categories on separate sections of the page, then your best option will be to use multiple loops instead of just one main loop.
Forum: Fixing WordPress
In reply to: Mouseover TabsWhat’s the link to your site?
Forum: Fixing WordPress
In reply to: query_posts & multiple categoriesBased on the information from the query_posts() reference document, it appears that your syntax should be like this:
query_posts('cat=8,4,3');
and
query_posts('cat=6');
Hope that helps.
Forum: Fixing WordPress
In reply to: Redirecting to WordPress Subdirectory – PLEASE HELP!Changes should take affect immediately. Check out this document, as it will tell you how to do what you’re trying to do:
Forum: Fixing WordPress
In reply to: Want to hand write a form, PHP post function problemsHere’s what I’m able to see:
The form is set to post to https://www.honestorchard.com/assets/inc/contact.inc.php. I navigated to that page to see what would come up, and it looks like the same form is on that page. Since it’s PHP, I obviously can’t see the coding, only what is rendered. Is this particular script set up to check for POST values, process the form data if they are present, or display the form if they are not present? That is a good way to do it, but the reason it’s not working might be that it’s not recognizing that there is data for it to process.
There are two Javascript errors that I can see. Unfortunately, I’m not as familiar with Javascript as I would like to be, so I’m not sure what you will need to do to take care of these. The first error is a “Parse error” for your script on line 25 in your document. The second error is “ReferenceError: Can’t find variable: prettyForms” on line 261. My guess is that these are not what is causing your form to not work correctly, but they seem to involve the display of the form.
All things considered, I would look into what is happening with your Processing script. If you want to share specific portions of PHP code, I should be able to help with that.
Forum: Fixing WordPress
In reply to: “Internet Explorer cannot display the webpage” – frequentlyWhat versions of IE have you tested with? Do they all display the same behavior?
(I will be testing with IE 7 today to see what results I get)
Forum: Your WordPress
In reply to: WordPress as CMS/Blog@weddingcakes – Thanks for the input! To answer your questions:
The social media icons I found on iconspedia.com as part of the “High Detail Social Icons” set. I did not modify them (other than sizing them to fit my needs).
I agree that the black looks better, however the yellow was chosen to fit with the colors being used by the client for their campaign. It also serves to set the homepage apart from the other pages.
Forum: Fixing WordPress
In reply to: Using WP as CMS for a non-blog websiteTo piggyback on @moodles’ recommendation, I would also recommend this book from Smashing Magazine:
Smashing WordPressI purchased the book, and it has been an instrumental resource in helping me understand WordPress, and how to use it as a CMS and not just a blog. A site that I have been working on will be launching soon, and it uses WordPress as the foundation, but it is most definitely not your typical blog site.
Forum: Fixing WordPress
In reply to: “Internet Explorer cannot display the webpage” – frequentlyDifficult to know for sure, but I would suggest cleaning up the code a bit. There are some Validation errors that could be part of the problem.
Forum: Fixing WordPress
In reply to: Want to hand write a form, PHP post function problemsA couple questions:
- What is the link to your page?
- Are you trying to use a separate script to process the form data, or are you trying to use the same page that displays the form to also process the form?