Jeremy Pry
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Whatsup with this?? : syntax error, unexpected T_ENDWHILEI think I might have found the problem. In your section that begins with
<?php query_posts('showposts=1&offset=0&cat=21'); ?>
there is no closing bracket for your
foreach
loop in the anchor link. Add the closing bracket, and see whether that clears up the problem.Same thing with the section that starts with
<?php query_posts('showposts=1&offset=0&cat=28'); ?>
Forum: Fixing WordPress
In reply to: Cannot Get Videos to DisplayThere are a bunch of validation errors.
As @esmi first suggested, did you reactivate those 26 plugins one by one to see which one may have been causing the problem?
Also, I tried going to the link in the first post, and the YouTube video loaded and played correctly. Is that still a problem for you?
Forum: Fixing WordPress
In reply to: My page is showing a WordPress Install page?!@esmi I managed to get there (it took a long time, close to two minutes), and it’s loading https://overratingtheunderrated.com/wp-admin/install.php.
@ajay182, login to your site via FTP, and verify that the index.php file is present (in the same folder as install.php, noted above). When I typed in https://overratingtheunderrated.com/wp-admin/index.php, it took me to a “500 Internal Server Error” page.
If your index.php file is there, then this is definitely something to contact your host about.
Forum: Fixing WordPress
In reply to: Multi post pages: can it be done?You could do the same type of thing on the main page. The key (in my example) is the category name. Assign your special category to the posts you want to display, and then use the custom WP_Query, specifying which category name you used.
Forum: Fixing WordPress
In reply to: Multi post pages: can it be done?This is certainly possible. What you need is a separate page template in the theme that you’re using. You can create your own, or find an existing theme that has instructions on how to set one up (I’m doing this same type of thing, and I opted to create my own theme).
You could use categories in your posts to make sure that only certain posts show up on a particular page. Then, in your code for the page you’re using, you would have a query that pulls posts by that particular category.
Here’s an example when the category of a post is “home” (for posts that you want to show up on a home page):
<?php $home_query = new WP_Query('category_name=home'); if ($home_query -> have_posts()) : while ($home_query -> have_posts()) : $home_query -> the_post(); ?> <!--Your code to display and style each post goes here --> <?php endwhile; ?> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Case Insensitive PermalinksThis is probably more closely related to the OS that WordPress is installed on, rather than WordPress itself. For example, in Windows, C:\Program Files is the same as C:\PROGRAM FILES or c:\program files. But on Unix-based systems (Mac OS X and Linux), /Applications is not the same as /applications or /APPLICATIONS.
(Someone correct me if I’m wrong on this)
IE always seems to cause problems…
What version(s) of IE are you testing with?
Forum: Fixing WordPress
In reply to: Show 2 posts on ‘home’ page, 10 on ‘blog’ pageThere are a number of different ways to do this. My personal preferred way is to create a new query, and use that query in place of the normal WordPress loop. Here’s what some sample code would look like:
<?php $home_query = new WP_Query('showposts=2'); if ( $home_query -> have_posts() ) : while ( $home_query -> have_posts() ) : $home_query -> the_post(); ?> (Here is where your HTML/PHP code goes that you apply to each post) <?php endwhile; ?> <?php endif; ?>
Glad I could help!
I will have to get back to you later with specifics, as I’ll be away from my computer for the remainder of the day (if someone else doesn’t give you the answers you need before then).
In that case, it might be easier to leave permalinks on, and adjust your settings in two ways:
- Set the homepage to use the permalink version
- Adjust the location of your flash file to navigate up one more folder before drilling down to the exact file location. Something like ../folder/folder instead of /folder/folder.
If you navigate to your homepage using the permalink, does the flash still show up on the homepage?
Here’s what I mean: You should have two addresses that both point to your homepage. One would be https://www.mywebsite.co.uk, and one would be https://www.mywebsite.co.uk/home (assuming your homepage is actually named “home”). Does the second version work as well as the first version?
Looks like that code didn’t have what I was looking for… One of the cons of having multiple ways to insert media.
I did take a look at the plugin settings and the Kimili support site. Have you tried setting the “base” setting in the plugin settings?
Let’s say your flash video is located at
https://www.mywebsite.com/folder/folder/flash.swf
. You would want to set your base to /folder/folder, and then set your file to flash.swf.Does that work?
Also, another question: Have you tried using the shortcode (the code in brackets) within a normal WordPress post to see if it works there?
Could you post the code snippet that brings in your flash content? It’s probably enclosed in
<embed>
tags.Forum: Themes and Templates
In reply to: Fixed navigation bar in IEI have finally found the solution to this after posting on another forum. Turns out the solution was to adjust my coding so that my navigation bar appeared further down in the code. The link to the other forum can be found here, in case anyone else is interested.