Joshua Sigar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problem with “php query_posts” please help..<?php query_posts('cat=-7'); ?>
Change that one line code to the following.<?php $wp_query->set( 'cat', '-7' ); ?>
<?php query_posts( '' ); ?>Forum: Fixing WordPress
In reply to: QuickPHP and include statementsWell, did the second code not work? Make sure you activate the plugin.
The first one is likely not to work because of the server security settings.
Forum: Plugins
In reply to: Flock and Subscribe2 PluginProbaby the hook which invokes the execution of the plugin is only called when Post is made from admin panel, and not when the Post is made externally.
Contact the plugin’s author; he’ll be more familiar with it.
Forum: Installing WordPress
In reply to: Do I need to use a template?OK, I did that. But a theme is still selected in the Presentation section of the dashboard. Will this affect anything?
Well, if you use template tag, say,get_header(), it will grabheader.phpfrom currently active theme. So, don’t use template tags to get a reference to any files, e.g. stylesheet file. Just do your own coding.<?php
// disable the theme feature first
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');
?>
<html>
<head>
</head>
<body>
<?php include('myownstuff.php');
<?php include('mysidebar.php');
</body>
</html>Forum: Fixing WordPress
In reply to: multiple sites, same users – how?In wp-settings.php line 73-76, there is the following.
if ( defined('CUSTOM_USER_TABLE') )
$wpdb->users = CUSTOM_USER_TABLE;
if ( defined('CUSTOM_USER_META_TABLE') )
$wpdb->usermeta = CUSTOM_USER_META_TABLE;
So, you could probably have the following in index.php in the new wordpress’ root directory. (see note)
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
define('CUSTOM_USER_TABLE', 'wp_users');
define('CUSTOM_USER_META_TABLE', 'wp_usermeta')
require('./wp-blog-header.php');
?>Note: In this example, first installation was installed with table prefix of wp_ and the second installation’s prefix is wp2_ or any arbitrary prefix. The code above goes to the second installation. This way, no tables duplication necessary.
I haven’t tried this myself, but this is the concept.
Forum: Fixing WordPress
In reply to: Number/Size of Posts Problem – Help!Disappear or displaced?
When you look at the source code, is everything still there?
Forum: Installing WordPress
In reply to: Do I need to use a template?Modify the index.php in wordpress’ root directory to contain the following.
<?php
// disable the theme feature first
define('WP_USE_THEMES', false);require('./wp-blog-header.php');
/* now you can insert whatever here that usually belongs to themes directory */
?>Forum: Everything else WordPress
In reply to: WordPress Loop and Order of PostsWhat do you mean by “organize?”
The default posts order is by its date, btw.
Forum: Fixing WordPress
In reply to: It’s a Bug Hunt !!What do I need to know about Trac? I’ve never used it and I don’t think I would want to learn everything about it.
” Brush up on the WordPress Coding Standards for any patches you may submit.”
Any reference for how to create patches?
Forum: Your WordPress
In reply to: Webcomic Plugin?So, on that screenshot of yours, you want to be able to browse/navigate the comic strips, but the post below it will stay as “The Joy of Schooling?”
If so, you could have two Loops. One Loop grabs the Post in category “comic” (this Post will contain the comic strip); another Loop displays the category of non-“comic.”
Forum: Your WordPress
In reply to: Webcomic Plugin?Browsing the two sites you linked, I suppose you want to associate a comic with every blog entry?
If so, just write the blog entry regularly and enter the url for the comic image in custom field.
Forum: Fixing WordPress
In reply to: What WordPress can do for me?Is the customization of the WordPress layout and look done through CSS and PHP coding ? Or is it point and click, drag and drop ?
CSS, PHP. No point and click, drag and drop, here; though there may be a theme that will let you customize the theme thru options panel.And, though I did not read it, does WordPress create seperate feeds for each blog category?
WP pretty much provides feed for everything. You need to append “/feed” if you use permalink or “&feed=rss2”E.g.,
http://example.net/category/music/feed (with permalink)
http://example.net/?cat=2&feed=rss2 (w/o permalink)p.s. look up permalink in codex
Forum: Installing WordPress
In reply to: Can’t Position ThisHow is the CSS file for the gallery loaded? I don’t see its reference on that page (unless I missed it)?
But, yeah, just combine them (put everything in theme’s style.css) if it makes it work. Won’t hurt.
By the way, we use a Firefox extension to debug other people’s CSS.
Forum: Installing WordPress
In reply to: Can’t Position ThisI managed to position them somewhere else with regular CSS code. Or is that not what you meant?
Forum: Fixing WordPress
In reply to: Can’t read multiple custom fieldsDid you use it inside the Loop?