scribblerguy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Loop & Filters with TagsThe first part of what you want to do (the four loops) is definitely doable. Take a look at the multiple loop examples on the Codex page for
The Loop.To only get certain posts, use the query_posts() function before a loop. E.g. —
<?php query_posts('tag=content1&limit=10'); ?>
Depending on what you’re doing, you may need to use the
rewind_posts()
function to reset the main page’s default (or implicit) query before using the query_posts() function.One caveat: Make sure your loops work correctly on the “Older Entries” pages, as the “pages” that those older entries will be on are going to have a different default query. If the query calls aren’t constructed right, the non-main loops may show older posts rather than the newest posts for that loop.
The aim is that the main feed [2.] will initially show only content tagged ‘content2’ but if the latest item in any of the other 3 sections is clicked, it will replace that tagged content into the main feed.
Take a look at the Template Hierarchy page in the Codex. To best accomplish what (I think that) you want to do, is to separate out the code for your left column and right column and save those to separate files that you can include. (If you haven’t done that already.)
If you name those files sidebar-left.php and sidebar-right.php, you can use the WP function sidebar(); to include the file contents. E.g.
<?php sidebar('left'); ?>
When a user clicks on the link for a post, WP will display that individual post using the single.php template file. To make sure that an individual post page works correctly, given all your multiple loops, you should follow the “Multiple Loops Example 2” from the Codex page about “The Loop.” The same should apply to other pages (categories, archives, tags, etc.).
Hope that explanation helps. Using multiple loops isn’t too tricky, but it does have potential pitfalls.
Forum: Fixing WordPress
In reply to: Cross-month archive navigationYou could use the wp_get_archives() function to output a list of monthly archives. Otherwise, I think you’re looking at writing a custom page navigation function.
Forum: Fixing WordPress
In reply to: Feed not working and giving errorYour feed has an extra space at the top. For proper XML parsing, the XML document needs to start at the first line.
The cause of this is usually white space after an end PHP tag (“?>”) in either your theme’s functions.php file or a plugin file. The normal solution is to open each of these files; look for an extra line at the bottom; and if you find such a line, to remove the whitespace, so that the PHP end tag is on the last line.
I see that you’re using the misty-look theme and I just downloaded the latest version. The functions.php file has an extra line at the bottom. If you remove that, then I think you’ll be set.
Forum: Everything else WordPress
In reply to: Multiple Category ChangeTry the Batch Category Editing for WordPress and Batch Categories plugins.
This is one of the more popular Ideas that might be implemented (maybe). See: Batch Categories
Forum: Developing with WordPress
In reply to: Custom Comment FieldsThere is only one log entry and it is set as the main page, and the comments are the more important part. … The visitor can select a different category for the comment, so that when the page is loaded, I can display the comments from different categories in different ways.
Could you give a more concrete example of the purpose for these user comments? It sounds like you want a forum-like functionality for your site.
This forum uses the open source bbpress, which is a sister app of WordPress. bbPress has built-in tags capability, which could be used as a substitute for the categories you mentioned.
For what you’re asking, WP isn’t really isn’t designed to do that. It’s comments processing is only designed to accept a few fields (name, email, website, and the actual comment). To add a new field would likely require modifying core code along with adding a new database table.
Forum: Everything else WordPress
In reply to: Adding custom fields at admin-UIProblem is that where and how to create the input for this custom data value? There should be a field at admin-site: “Number of posts at front page” and then user could enter “5” and then click “save”.
There is an overall option in the Admin Panel. Look at the Options > Reading SubPanel, there’s an option called “Blog pages show at most” where one can enter any number.
Take a look at the Custom Query String Reloaded plugin. (Don’t use the big download link, but the link in the box above the post.
Forum: Fixing WordPress
In reply to: How to stop the feed from your blogA search of this forum found the following thread: Removing all RSS Feeds from a Site (19 posts).
You might have to remove the feed-related template tags from your theme, such as
bloginfo('rss2_url')
. You can find out more about template tags in the Codex.Forum: Plugins
In reply to: Customizing permalinks beyond wp-admin/optionsThe post title part of a post’s permalink is generally referred to as the post slug. This can be changed on the same page that you write or edit your posts.
In WordPress 2.0, to the right of the post editing box, there is a small box labeled “Post slug” that is probably collapsed. Click on the “+” (plus sign) to expand the box.
In WordPress 2.5, under the Post title, there’s a line that looks something like the following:
Permalink: https://example.com/post-title/ Edit
Click on “Edit” to change the post slug to whatever you want.
Forum: Fixing WordPress
In reply to: Personalized fields always visibleTry the More Fields plugin.
Forum: Themes and Templates
In reply to: Wish to know name of a themehttps://s.themes.wordpress.net/site-theme/style.css
/*
Theme Name: Theme Viewer Site Theme
*/There you go.
Forum: Fixing WordPress
In reply to: adding new field under “author”What you’ll want to do is to use custom fields. The More Fields plugin can make the entering part easy, but you’ll need to add a line or two of code to your theme’s template files.
Let’s say that you name your custom field “photog”. The code you’ll have to add will look something like this:
<?php if ( post_custom('photog') { ?> Photos by <?php post_custom('photog'); ?> <?php } ?>
Make sure that wherever you put this code, it is inside The Loop.
Forum: Plugins
In reply to: XML not generatingHave you tried requiring
wp-blog-header.php
instead ofwp-config.php
?With wp-blog-header.php, you can use the normal WP template tags.
Forum: Themes and Templates
In reply to: Please Help with the comments ?I’d suggest that you simply look for another theme that’s more intuitive. That theme tries to be too fancy for its own good.
Also, since you’re combining a static site with a blog, I’d recommend using the static front page option for WordPress and creating WordPress Pages, so that you can manage your entire site within WordPress. See the Codex page on Using Pages.
Forum: Themes and Templates
In reply to: Advanced! Css for built-in widgetsFrom pagesource, I can see that there are several classes the wp has assigned to the in-house widgets. But where do I find the list of them?
for example: class=”widget widget_pages”
& h2 class=”widgettitle”Anyone know? They are NOT in the default or classic themes.
That’s because they individual widget class names are defined in the core WordPress files (the
widgets.php
file in thewp-includes
folder).If you want a list of those, take a look at this screenshot attachment in Trac. Ignore the one with the “-alt” ending and just drop the “.gif” from the file names and you have all the widget classnames.
Technical note: The generic “widget” and “widgettitle” class names can be customized. From the first few lines of the default theme’s functions.php file:
if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', ));
For more information, see Widgetizing Themes at the automattic.com website.
Forum: Fixing WordPress
In reply to: Permanent Text on Home/Posts PageIf this is text that won’t change that often (e.g., weeks, months, or longer), then the simplest solution would be to hard code your message into your theme.
Though, this plugin might have the functionality you’re looking for: Awsom News Announcement.