wordpress

error wordpress, adjusted sidebar.php to show latest 10 posts

Hi, I'm trying to edit my sidebar.php file in my current them WP is using to display the last # of posts (only the titles) as links. I tried using the example of http://codex.wordpress.org/Integrating_WordPress_with_Your_Website but I always get the error on the line that states where the file wp-blog-header can be found. the error w...

wordpress sidebar and loop php code distorts each other

Hi, I've edited the single.php to suit my needs and it works. I only left in the part of the loop in in which is as follows: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div class="entry"> <?php the_content('<p class="serif">Read the rest of...

Using oauth with wordpress

I am creating a twitter plugin for wordpress and I was told that when using oauth you can't really make the plugin act natively because each time the user installs the plugin they have to add their own twitter api credentials because of the callback url. Is this correct? Or is there a workaround for this? Thanks for your help in advan...

CBT / Books / Resources on Bridging Wordpress and Pligg (or Creating a Bridge Generally)

I want to create a bridge between Pligg and Wordpress. Unfortunately, I'm having trouble finding any general information on how to approach the project. I'm a php/mysql amateur, but I have some time to work on this project and learning more is an important benefit for me. Would you recommend any books, websites, tuts, CBTs, or other m...

Wordpress theme not displaying when activated on production server, but will display on development environment

Wordpress theme not displaying when activated on production server, but will display on development environment. I can view the theme in preview mode, but not when it's activated. Any idea on where to start would be great. ...

in wordpress, how do I know what page is current?

in wordpress, how do I know what page is current? I have 5 pages that are my header menu bar, I want to CSS the current (open page) so user knows whats page they are on. Is there a way of doing this? thanks ...

How to preserve &amp; in <pre><code>

I am having trouble preserving an ampersand in a code example on my blog, because all HTML entities start with &. Any tips? For example: <pre> <code> <?php $pageTitle = str_replace('&', ' &amp;', $page->attributes()->title); ?> </code> </pre> Renders as: <?php $pageTitle = str_replace('&', '&', $page->attributes()->title); ?> ...

To use Wordpress themes in Rails apps?

Wordpress themes are beautiful! Is there any guideline to use Wordpress themes in a rails app? Even better, are there rails app templates which can use the Wordpress themes already? Thanks! ...

Comment Author Link on Wordpress

Hello, At the wordpress form, when you leave comment as guest, there's a website field to fill your web address. If we fill in that box, we can get the link by calling this function <?php echo get_comment_author_link(); ?> But if you are logged in and you don't add the website at your profile, when you leave comment. It doesn't have ...

URL structure preference - to slash or not to slash?

I'm using custom post types in WordPress 3.0 to manage 'courses' (or seminars, lectures, whatever term you'd prefer to have in mind). Now for viewing a single 'course', the url structure is; /course/course-name/ But for multiple courses? /courses/category/category-name/ Or... /course-category/category-name/ Or something entirel...

php - correct search expression for bbpress

I have a very purdy styled search box in my wordpress install, and looking for continuity I want the same for my bbpress forum - currently I'm failing. For WP I have: <div id="search"> <form action="<?php bloginfo('home') ?>" method="get"> <div class="hiddenFields"></div> <p><input name="s" id="s" maxlength="10...

Wordpress 3.0 documentation

Hi guys, quick question here. Is there any Wordpress 3.0 documentation available? Some kind of list with all the new functions and variables? All I can find are blog posts talking about the new features coming. Thanks! ...

How to get WordPress Twenty Ten theme sub-menus to expand to their contents (CSS)?

Hope this isn't "too" niche, because the CSS involved likely applies in other spots. I'm working with the new Twenty Ten theme in WordPress 3 beta/nightlies, and I'd really like it if the drop-down sub-menus (Pages/custom menus) would expand to the width of whatever is in them, rather than wrap the items at 130px. Here's an example p...

PHP statements, HTML and RSS

Alrighty, I've got another little bit of code that I'm wrestling through. I'm building a conditional sidebar. The goal is to only show blog related stuff when posts in the "blog" category are being viewed. I've got part of it working, but the part where I'm trying to bring in an RSS feed of the category into the sidebar to show as rec...

Cannot Call WordPress Plugin Files Under wp-content

I have a client who has many blog customers. Each of these WordPress blogs calls a plugin that provides a product link. The way that link is composed looks like this: {website}/wp-content/plugins/prodx/product?id=432320 This works fine on all blogs except two. On those two, when you try to call the URL, you get a 404. So, I disabled a...

Wordpress Post order

I wanted to re-arrange my recent post in wordpress so they go Ascending/Descending. Here is my code: <ul> <?php query_posts('cat=3,4,5&posts_per_page=5&order=ASC'); foreach ($post as $post) ?> <li> <span class="date"><?php the_time('M j') ?></span> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title()...

Selecte and retrieve file path to image using dialog box

I'm expanding Wordpress to function more like a CMS. This includes relating image to a post. Currently I have a text field where I paste an image path. Now I want to click a button which opens a dialog box, then I navigate to the right folder and select a file to "open" (from server side). The file path is returned. How can I go about...

Detailed book on how wordpress is build

Just a simple question... Is there a book that describes how wordpress works in detail. So what I mean is e.g. Where this variable is declared, where used and so on.. With best regards ...

How to get Wordpress MU / BuddyPress wp_signup meta data

I am trying to get a value from the meta data that is stored in the wp_signups table for a Wordpress MU / BuddyPress installation. I see it's stored in the meta field as s:3:"age";s:2:"25"; ...which is age = 25 I put the information there using $usermeta['age'] = $_POST['signup_age']; in a plugin subscribing the the bp_signup_usermeta...

How to add a skin engine to asp.net MVC system

I'm implementing a solution in ASP.NET MVC that later can be applied to couple of other fields. To do so it will require to re-brand the UI even though the underlying business logic wont need to change. I'd like to write the code in such a way that will allow other developers to only develop code that will only changes the UI. This is si...