wordpress-theming

Is the syntax for the Wordpress style.css template element available anywhere?

I've recently embarked upon the grand voyage of Wordpress theming and I've been reading through the Wordpress documentation for how to write a theme. One thing I came across here was that the style.css file must contain a specific header in order to be used by the Wordpress engine. They give a brief example but I haven't been able to t...

Can you add html tags to the author/user profile text field on wordpress?

I have added author pages to my company blog recently. Although I've no trouble pulling through relevant fields to populate the page - e.g. Author Name, User-profile, etc, I would really like to be able to add a small amount of html to the user-profile. Currently the whole thing is just dumped onto the author profile page - you can view ...

How to order categories in wordpress?

I use wp_list_categories() to get the list of all the categories and generate the navigation bar. Is there a way to order this categories in a particular order other than alphabetical ordering. eg: Connect, News & Views, Q&A, Hello Startup, Startup 101... ...

How to adapt WordPress theme to BlogEngine.net

Do you know any guidelines on how to create a new BlogEngine.net theme having source code of a WordPress theme? ...

Wordpress get_the_tag_list($ID) help

Hi Guys, I am making a new wordpress template and I want to just get, in text format, the list of tags associated with a post. I am using get_the_tag_list($id) But the problem is that it returns the URL as well as the text. Is there any way to just get the "text" of tags attached to a post seperated by a comma ? i.e. "tag1, tag2, tag...

Wordpress Template get_the_tags() help

Hi Guys, I am using this code to get the tags in my wordpress posts for a theme `<?php $posttags = get_the_tags(); if ($posttags) { foreach ($posttags as $tag) { $tagnames[count($tagnames)] = $tag->name; } $comma_separated_tagnames = implode(", ", $tagnames); print_r($comma_separated_tagnames); } ?>` The PROBLEM is that ...

jquery and wordpress

i am having difficulty making my jquery functions operate within wordpress. can anyone help out with why these should work normally but not in wordpress??? ...

Assign thumbnail to new wordpress category

I am building my first wordpress theme and was hoping that when the user made a new category, there was a way of automatically generating a thumbnail for it from the first image uploaded as a post to this category (it is a portfolio theme). Does anyone know how this might be coded? It cannot rely on hard coding as the user does not kno...

wordpress wp_list_categories() help

any ideas on how this can be formatted to print out extra attributes in the wp_list_categories function? at the moment, this functions returns the following values <ul class="projects"> <li class="wp-post"><a href="category/projects">Projects</a></li> </ul> How can I change this function to out put 'id' and 'title' tags ...

wordpress get_categories() issue

I have created the function below which is intended to list the sub categories of the parent with the id of 3. The function should also return meta data from the first post in each sub category. This works (kinda) but instead of just getting one set of data, it returns 3 sets with different outcomes. Any ideas why? global $cat; ...

Wordpress database backup

does anyone know of a good way to automatically backup databases used for wordpress blogs? Preferably a way of getting the backup emailed as a .zip file to the admin user so they can be stored remotely? ...

howto use wordpress sub pages to view posts?

I'm new to WordPress. I have my site (CMS) divided to several pages in a tree hierarchy. I'm trying to view posts in a specific category within a subpage. But for some reason event the simple "the loop": <?php if (have_posts()) : while (have_posts()) : the_post(); the_content(); endwhile; endif; ?> Shows ONLY (!!) th...

WordPress - list multi-level parent pages when on a 3rd level child page

I'm working on a website at the moment, and the navigation works as follows (by client specification). Underneath the header there is a horizontal navigation listing the top level pages, clicking on one of these takes you to page.php, which has a vertical navigation in the sidebar listing the sub-pages of that particular page like this:...

Does this simple PHP function wrapper look sensible for its purpose?

Being new to PHP, and with a lot riding on this "function wrapper", I thought I'd get a few opinions and a little feedback. I'd like to get about five comments, if possible. Now before you ask, I have many reasons for wanting to wrap other (WordPress) functions, the primary being hassle-free upgrading. It was also important for me to b...

Wordpress - hardcoding subscribe2 (or any other plugin) widget into template

I know how to hardcode categories, archives, etc into theme but for one of my projects i would have to hardcode some plugins widgets (especially subscribe2) and i'm not sure how to do this. I know i can add widgets via widgets menu in wp admin, but that's not what i'm trying to achieve, i'm trying to set it up permamently in theme for la...

adding single.php page to wordpress or if condition for main page or post detail page...

Hi friends, I use Barecity Theme for WordPress. i built everything, but now i need to add a single.php file to theme. now it displays all post content at homepage, I created a short_desc Custom Field. and I call it from code with; <?php //get_post_meta($post->ID, 'short_desc', true); ?> it is fine. but i need to display this short de...

How to integrate Wordpress template with CodeIgniter

How can CodeIgniter and Wordpress be integrated such that the look and feel/template of the Wordpress blog is carried over to the CodeIgniter-created pages? ...

[WordPress] Need help with remove_action()

I'm trying to remove the unsightly embedded <STYLE> tag the built-in Recent Comments widget puts in my <HEAD>, but I can't seem to get the syntax right. It originally calls add_action( 'wp_head', array(&$this, 'recent_comments_style') ); to add it (in wp-includes/default-widgets.php, line 609), and I'm trying to undo it. I think it ...

wordpress | carrington theme | sort posts by title within a category

Hi, Can you help. Wordpress can be altered in many ways. in the loop or just before in the functions.php file in the includes/posts.php I want number 3. As the other two do not work in carringtons theme. I have already edited this file and it worked perfectly. Alas it was so long ago that i have forgot how its done. It got removed ...

[WordPress] Show only one sticky post at the top of a list of posts

On my homepage I have a list of posts, and at the top I want to show only the most recent "sticky" post, followed by the rest of the posts. Is there a way to achieve this? Bonus points for only using one query_posts(). (I know how to do it using two query_posts(), but I'm looking for a less taxing solution.) ...