buchannon
Forum Replies Created
-
Thanks kate.ussr!
Forum: Everything else WordPress
In reply to: Use query_posts with multiple post_ids?Did you ever figure this out? I could use it as well…
I just ran into this problem as well jbadger.
dave_t, yes that works as a relative path, but it’s not dynamic. We want something like “bloginfo(‘template_directory’)” that returns a relative path and not a URL beginning with “http”.
It seems weird that this is a pretty basic thing, yet WP doesn’t have a built in function to do it?
Forum: Installing WordPress
In reply to: Cannot redeclare validate_file()?Same error here… what’s going on?
Forum: Fixing WordPress
In reply to: ‘Previous entries’ gives 404Did you guys figure anything out on this? I’m kind of in the opposite situation than you where I want 10 posts-per-page on the home page, and only 3 posts-per-page on a category page.
I’ve created a template category file, “category-4.php” in my theme and followed the guide here:
https://www.nathanrice.net/blog/creating-a-blog-page-with-paging/When I go to mysite.com/category/mycategory/page/2/ it displays the second page of posts but the number is off. No matter what I do, this custom category template is loading the first 10 posts of the category and paging the next 10 posts (even though only 3 are shown).
Any ideas?
Forum: Plugins
In reply to: wp-cache 2.1.1 no optionsI’m getting this same problem too. I even went through the “manual install instructions” and am still getting no options and no cache pages.
Forum: Plugins
In reply to: Simple messages to the user from a pluginI guess this really can’t be done without just calling the plugin function from within the theme?
Forum: Plugins
In reply to: the_posts hookCheck this page out:
https://codex.www.ads-software.com/Conditional_Tags#The_Main_PageDo something like:
if (is_single())
print_whatever_for_single_page();
else
do_something_else();Forum: Plugins
In reply to: Modify the body tagEdit your theme’s header.php
Is there a way to do it with a plugin though?
Forum: Plugins
In reply to: PHP Fatal error: Call to a member function get_page_permastruct()russellduckwort, mine was resolved. I’m pretty sure the original form code must be in an wordpress action or filter. Mine was outside of everything and when the form function was put back into a filter, it started working again.
add_filter(‘the_content’, ‘tb_form_filter’);
I also made a completely separate php file to handle the form info and then redirect back to another page. So far so good.