funkboybilly
Forum Replies Created
-
I have the exact same problem. I made sure to check as well that my server is running PHP5, which it is. Works locally, but when I post live, it doesn’t work. Any ideas?
Forum: Fixing WordPress
In reply to: the_content into variable?This way is a little easier:
$content = get_the_content();Thanks, you’re right. WordPress documentation says that “pagename” is the page’s path, not it’s title.
Is there a way to query posts/pages using a page’s title? Or is there a way to find a page’s slug/ID based on it’s title and then use that to query posts?
*the result I’m looking for is to write the title of any page into a custom field. WordPress finds the page from the custom field page title, and then lists it’s subpages.
Same here… sooooo annoying and I can’t find anyone with a solution. I’ve installed uninstalled, killed the table from the DB and reinstalled. It worked with my account when I put it up. Then I changed the account details to a different account and now the stupid thing isn’t working even with my old account.
Forum: Fixing WordPress
In reply to: Header graphics reloading for every page when they are all the same…I have the exact same problem on a test site I just put up:
http://www.brooklynconcept.com/bees_knees/
I’ve installed WP Super Cache fine, but still seems to load common page images every single time the page is loaded.
Any ideas why this would happen?
Is anyone else seeing this problem too?Thanks,
BillForum: Plugins
In reply to: [Plugin: StatPress Reloaded] Performance Issuejbob06 is a spammer who posts useless comments with links to eGift Cards at the end. I wish there was some way of reporting spam users.
Forum: Fixing WordPress
In reply to: Adding Pagination to a WP_Query LoopGot it to work!!! Finally!!! Using WP 2.8.2
Problem with my code was that I was pulling the page name (to use to pull posts from the category of the same name) after defining the new WP_Query.
One other strange thing was that I dropped the line for $paged definition and it still works. Here’s the code:
<?php $catname = wp_title('', false); $wp_query = new WP_Query(); $wp_query->query('category_name='.$catname.'&showposts=5'.'&paged='.$paged); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php the_title(); ?> <?php } ?> <?php endwhile; ?> <?php next_posts_link('« Older Entries') ?> <?php previous_posts_link('Newer Entries »') ?>Hope this helps
Forum: Fixing WordPress
In reply to: Adding Pagination to a WP_Query LoopI’ve tried this solution before and it doesn’t work for me either. When I tried it on WP 2.7 the pages showed up but navigating them doesn’t work. See this site: http://www.fancountry.com
Now I’m using pretty much the same code in WP 2.8.2 and not getting any pages showing up.
MichaelH Moderator, any idea why? Here’s my code (note: this custom loop comes after a standard loop on the same page. not sure if this effects the outcome?):
<?php $my_query = new WP_Query(); $catname = wp_title('', false); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $my_query->query('category_name=$catname&paged=$paged&posts_per_page=5'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php the_title(); ?> <?php } ?> <?php endwhile; ?> <?php next_posts_link('« Older Entries') ?> <?php previous_posts_link('Newer Entries »') ?>Forum: Developing with WordPress
In reply to: Latest post per category, from category 1 -8 on homepagesorry, I posted wrong info…
Forum: Fixing WordPress
In reply to: How to get Page Id using PHPYou rock… perfectly what i needed.
Forum: Themes and Templates
In reply to: Creating Page Based on CategorySorry just realized I had one piece missing. Make sure to add “false” to the wp_title(”, false) to make sure the variable is output as a string and not echoed. See below:
<?php $catname = wp_title('', false); ?>
<?php query_posts("category_name=$catname&showposts=3"); ?>
<?php $posts = get_posts("category_name=$catname&numberposts=3&offset=0");
foreach ($posts as $post) : start_wp(); ?>
<?php the_title(); ?>
<?php the_excerpt(); ?>
<?php endforeach; ?>
Forum: Plugins
In reply to: $wp_title help – conditional problemTrying to output wp_title(); to string also for a variable use in query_posts();
Forum: Themes and Templates
In reply to: Creating Page Based on CategoryHere is the code I used to get this to work:
<?php $catname = wp_title(''); ?> <?php query_posts("category_name=$catname&showposts=3"); ?> <?php $posts = get_posts("category_name=$catname&numberposts=3&offset=0"); foreach ($posts as $post) : start_wp(); ?> <?php the_title(); ?> <?php the_excerpt(); ?> <?php endforeach; ?>It automatically pulls the name of the page and then displays the first 3 posts from the category that has the same name. Hope this helps.
Forum: Plugins
In reply to: MP3 player suggestions?Forum: Plugins
In reply to: [Plugin: WP sIFR] Works Like a CharmLooks like 5 stars all the way for everyone on this one. Mine’s not working and followed the instructions to a T. Maybe it’s something to do with the fact that I’m using an Opentype font instead of Truetype. Guess I’ll have to investigate further.