Drew
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Simple question – how to change posts from full to summary?Right. You would need to use the
the_content()
function.This could should be sufficient:
<?php the_content('Read more...'); ?>
UPDATE: Make sure you put this within The Loop.
Regards,
DrewForum: Fixing WordPress
In reply to: Code in Post ProblemMake sure it goes:
<pre> <code> [c code here] </code> </pre>
Regards,
DrewForum: Fixing WordPress
In reply to: Multiple category recent postsI apologize. You said, RECENT posts didn’t you. I believe there is a plugin out there called recent posts plugin. That can be found here. I am not sure if you can exclude certain categories though. I would start searching the forums on this though, I’m sure this has been discussed, and you should have searched before posting. I know I have seen this before.
Regards,
DrewForum: Fixing WordPress
In reply to: Code in Post ProblemAs much as I would not like you to repost this, but …
I meant the whole block, such as the
<pre>
andcode
tags.In order to do this, click the “code” button when replying and make sure you close it when you are done, or just put the entire post in backticks (start and stop).
Regards,
DrewForum: Themes and Templates
In reply to: How Many Files are NeededYes, really the minimum is probably two. The problem, though, would lie in the organizational part. For instance, if you had 7 page templates for various things on your site (God forbid :O). You could have a
<div>
search block in each page, OR you could make a search.php file and just call it in each page, so that when you update the search page, it updates it on every template that you call it.So, the answer is, yes, you can create a template with one index.php and styles.css file. I would not do that if I were you. I actually only have 3 or 4, which is not that much, and some themes have many. It’s up to you.
Hope this has helped.
Regards,
DrewForum: Fixing WordPress
In reply to: Code in Post ProblemPaste your code for us so that we can see. Just paste the start and end of your code (the whole block); in other words, don’t post the whole entire post of the source page.
Regards,
DrewForum: Everything else WordPress
In reply to: to show cut articles on main pageI believe this would have to be done by a plugin or a little workaround in your index.php template page. You can use the
<!--more-->
tag to cutoff so that they can click on it to read the rest of the post, but I believe you are wanting to do more of an excerpt type of thing where you specify how many characters or words to allow until “more” comes along, followed by “…”.Am I right, or not? I believe I know what you are wanting, and if I am right, I don’t think you can do this stright “out of the box”.
Regards,
DrewForum: Fixing WordPress
In reply to: Code in Post ProblemIf you are wanting spaces, you will need to use
<pre></pre>
tags.You can either do that or use the code tags and incorporate the
numerous times to get the spacing you want. I prefer to use the<code></code>
tags within the<pre></pre>
tags.Regards,
DrewForum: Developing with WordPress
In reply to: query_post (single post on homepage) not workingTrue. Maybe I shall do so ??
Forum: Developing with WordPress
In reply to: query_post (single post on homepage) not workingAlright this seems to be resolved. It appears that I was using the old version of The Loop:
<?php if ( $posts ) : foreach ( $posts as $post ) : start_wp(); ?>
And should have been using the new version:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
NOTE: There are also different closing parts of The Loop, so make sure you use the following closing for the new The Loop:
<?php endwhile; else: ?>
<p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
<?php endif; ?>For those who might have this issue, check you Loop! ??
Forum: Fixing WordPress
In reply to: Plugin/Fix to deactivate all/some plugins?All bullshit aside, because I have no time to chuckle about this matter.
Maybe the lack of response has to do with how “dumb” a plugin like that would be.”
Dumb? Plugin to make dinner would be dumb … get off your ass and do it (I know it was a joke, but personally, you think my idea is dumb … even though you stated that this was not the case).
Stop using a start>run>ftp and get a 21st century ftp client.
I don’t use Windows. I use Linux, and I use FTP. It takes more effort on an FTP program to shoot the files over to another directory and then move them back than clicking a few check boxes and submiting it.
And then!! How do you have the plugin deactivate itself?
The plugin won’t deactivate itself. You have checkboxes (remember my initial post). You click the checkmarks in “bulk mode” to deactivate the ones you don’t want. If you want them all removed, then you can write another function to deactivate all plugins and it will deactivate all the plugins and call another function that could be inserted into a database that deactivates the “deactivate plugin” and inserts PHP code into the admin section (such as options) that will allow you to activate all plugins again.
Simple, yet effective.
Forum: Your WordPress
In reply to: Another Rock Band siteI would tighten up a little on the CSS design. Seems like things are a little off and “off” center. Maybe that’s just how you designed it…
Forum: Fixing WordPress
In reply to: Plugin/Fix to deactivate all/some plugins?Come on people .. anything? Seriously. *BUMP* (again)
Forum: Plugins
In reply to: Turn WP into a Job BoardHmmm I don’t understand. If I go to a job post .. it is just information. Wouldn’t it be best to have more information, such as a contact for that goes to the job offer’s registered email. This is more of a Job Posting Blog.
Just my thoughts.
Forum: Fixing WordPress
In reply to: Plugin/Fix to deactivate all/some plugins?Yea, but that isn’t the way I would. Such as, you would have to issue the “move” command. And you would change the structure of your documents (the plugins).
The point would be to “deactivate” for whatever reasons (upgrade, reinstall, testing, etc.) of wordpress or other plugins. It states in a few docs that you must deactivate all plugins (such as an upgrade).
How would we do this?