Michael Fields
Forum Replies Created
-
Forum: Themes and Templates
In reply to: What template should I use?Totally, stay away from Kubrick. I recently switched over to iNove and really dig it.
Forum: Themes and Templates
In reply to: PHP, Custom Taxonomies, and Barthelme ThemeJust a guess, as I am not all that familiar with the plugin or theme, but the plugin’s code should be used instead of the themes code in this case:
<?php if(function_exists('custax_the_terms')) custax_the_terms('thing', 'Things: ', ', ', ' '); ?>Forum: Themes and Templates
In reply to: Using Dashboard Widget overides sidebar.php code?I recently switched my theme to inove and had the opposite thing happen… I set up my widgets and the rss feed at the top of my sidebar stayed put!
The theme’s creator was able to accomplish this by putting the call to the:
if ( !function_exists('dynamic_sidebar') )conditional statement lower in sidebar.php. You can probably add you google code + button back to the top of sidebar.php and add theif ( !function_exists('dynamic_sidebar') )somewhere below it.Forum: Requests and Feedback
In reply to: New Date Stamp FormatYes! It reminds of that time a few versions back when they deleted the ID’s… OH!!!!!!! the pain 🙂
Forum: Themes and Templates
In reply to: How to have separate page for posts (not index.php)Weird issue… glad you got it working though!
Forum: Fixing WordPress
In reply to: Displaying Post Order Number Beside PostSomething like this might work for you ( inside http://codex.ww.wp.xz.cn/The_Loop )
<h2><?php print intval( $post->menu_order ); the_title(); ?></h2>Forum: Plugins
In reply to: Changing Parent Posts for images in Media LibraryI have not seen one that does exactly what you are looking for… last time I checked, there is a one to one relationship for parent to child on posts to images. I have put together a simple plugin that might help you in the short term, but it’s far from a perfect solution 🙂
Forum: Plugins
In reply to: How to modify post content before output to blogCheck out the Shortcode API. I think it would be perfect for what you need to do. And a bit less work too!
This seems to be a problem with the Media Master Theme. On line 37, you will find something that looks like the following:
<div class="entry"> <?php print character_limiter($post->post_content,650); ?> <a href="<?php the_permalink() ?>">Read More</a>The problem here is that the author is using
$post->post_contentraw with no filtering which will not allow shortcodes to function properly. Please try the following:<div class="entry"> <?php the_content(); ?>Forum: Plugins
In reply to: Is there a plugin that shows all posts from one category?This is more of a theme issue, I think… your current theme is probably using a shortened form of The Loop to display your category archives. My advice, would be to replace The Loop in the theme file that displays your categories; typically this is either category.php or archive.php – but this depends on your theme. Which theme are you using?
Forum: Themes and Templates
In reply to: A simple img alignmentGive this a read: http://ww.wp.xz.cn/support/topic/233783?replies=3
Forum: Themes and Templates
In reply to: How to have separate page for posts (not index.php)Have you tried moving the code that’s in home.php to a page template. You could then apply this template to a new page called home, set that to display as your home page… Just a thought… I never had much luck with home.php
Forum: Plugins
In reply to: Plugin to Automatically resize images?awesome… please mark thread as resolved 🙂
Forum: Themes and Templates
In reply to: How to include the header/sidebar footer in this php fileSorry mfields I’ve been rude without excuses, it’s too easy to be desperate with code.
Well, I guess we all have out moments…
I test what you said and whooami said, in the most simple way (without cart.php module) inside the theme folder in a clean php file with no results (absolute paths and relative).
The solution in the link assumes that you are trying to load WordPress functionality into a file that is not a part of your WordPress theme. Lets say you have a file in you web root and you want to add the header, footer and sidebar from you current theme, you would use:
require('./wp-blog-header.php');at the top of the file and then you can use
get_header(),get_footer()andget_sidebar()in this non-theme file.I mean to say that the way to build and link a Php file calling the header, sidebar, and footer should be documented in the Codex, not that the codex have to be a solution for my case…
If you are looking to create a Custom Page Template, this is documented. Also see http://codex.ww.wp.xz.cn/Pages#Creating_Your_Own_Page_Templates
Probably we are missing something, maybe is the fact that I can’t link directly the page.php (for example) like example but page.php works inside the mechanism of wordpress but I don’t know how is working all this…
Can I call “cart.php” as a page template¿?? is inside a folder above of the theme files….Please read this for and explanation:
http://codex.ww.wp.xz.cn/Template_HierarchyCan I call “cart.php” as a page template¿?? is inside a folder above of the theme files….
So how can I do it?! How can I call (link) this php with the header, sidebar, etc. that’s the question.Hypothetically, yes, but there can be conflict with function names when bridging software like this… do you have a link to the cart module? By looking at your code, it appears that you have installed to module in your current theme’s directory… hmmm…
Please respond with the a link to cart module’s website and I’ll see what I can come up with.
-Mike
Forum: Plugins
In reply to: How can wordpress TOC appear automatically on old html pages?No problem, thanks for posting the link!