wordpress-theming

Looping through wordpress categories

Hi I am new to Wordpress and been pulling my hair out trying to create a category loop. The loop is supposed to: loop through all categories echo out the category name (with link to echo out the last 5 posts in that category (with permalink to post) The html for each would be <div class="cat_wrap"> <div class="cat_name"> ...

Exclude templates in wordpress page

If I put a file up in my theme folder named foo.php that only contains <h1>Foo</h2>, WordPress will automatically pull in the home.php file. Is there any function to prevent that and have it simply render the file foo.php. I'll still want to be able to use the wordpress functions from that page. Thanks! ...

formatting help with wp_list_pages()

I posted this question on the wordpress forum but got no hits. Perhaps one of you might be able to point me in the right direction. I am putting together a wp theme for a site I am working on. I want to get the layout to match the rest of the site as closely as possible and am running into trouble using the wp_list_pages/categories/boo...

What to keep in mind when making Wordpress themes

I have been making Wordpress themes for a year or two and keep running into things I need to keep in mind when trying to make my themes as compatible and flexible as possible with their settings, plugins, etc. Is there a resource that keeps a checklist of all the "don't forgets" of Wordpress theming? What things do you try to keep in m...

Creating a Archive in Wordpress Datewise for a Particular Category

Hello Guys In my site i would like to add a archive page or a custom page where i want to show posts from a particular category and that with a date wise format like for example: i am in category : Technology All post of a day will be shown at this page like i have written 3 posts only on that day. The next page from navigation wou...

Echoing a string that contains PHP (in WordPress)

I have a custom field in WordPress called "thumb-url" which contains the exact location of an image. I want to only display the image if "thumb-url" contains the location of the image. I'm start with an if statement that echoes photo exists if there's a value in the "thumb-url" custom field, otherwise it does nothing. <div class="excer...

Wordpress Multipart Form

Hi, I'm trying to set the wordpress posting form to multipart/form-data for a custom write panel. I am attempting to use JQuery but can't seem to get it to work. jQuery(document).ready(function(){ jQuery('form#post').attr('enctype','multipart/form-data'); jQuery('form#post').attr('encoding','multipart/form-data'); }); This is...

Wordpress Comment Display Modification

I'm having trouble with modifying the way comments are displayed. Currently they are always displayed as "Comments (%)". Changing the code that's displaying the comments to doesn't seem to do anything. Where can I properly change the way # of comments are displayed? I'm using the primepress theme - http://www.techtrot.com/primepress/...

Wordpress hiding Post Div

I wanted to know how to make it possible that if there is no post i would like to be able to hide the DIV that controls the latest blog post only having them appear when someone post somethign on a blog.. Somewhat like a position in joomla but in this case i am using wordpress ...

How To Post Articles To Wordpress Programmatically?

Wondering is there a way so that you can post an article to Wordpress directly from your own PHP code. I want to post in my own standalone wordpress from my php page which should call the hosted wordpress 2.8.6 version and post an article with images (create thumbnail automatically). Is it possible? ...

Wordpress: wp_get_attachment_thumb_url

There seems no way of referring to the "big size" "mid size" or "small size" image in a theme. Compounding that problem is their naming convention of 100 x ??? file name format, preventing hard coding a reference. Does anyone know of any solutions? ...

Wordpress Admin Section users.php

Hello, I'm hoping somebody knows the answer :). Within wordpress in the users section I would like to add a new row which will data pulled in from the Register Plus plugin. Where would I need to create a new row? My Example: Username Name E-mail Role **Website** Posts Admin Admin ...

Wordpress theme Javascript problem

Hello, I have a wordpress site running the WP-Coda theme here, and have been working to create a page template. The link to the a page with the template is namastebella.byethost5.com/random (Sorry no hyperlink, can't post 2 as a beginner!) The "fadethis" javascript function makes animated hovers on the top three links. It works on the ...

wordpress: Displaying a link to latest grandchild on frontpage

I have a page ("testimonials"). It has 3 subpages ("children") : "press", "people", "enterprises". Each of the subpages have their own subpages (grandchildren of "Testimonials"), which are the actual testimonials files. I would like to display on my frontpage the most recent grandchild page. How can i do that? I tried using get_pages(...

Get List of subcategory

I have this category on my wordpress: Test1 - Sub1OfTest1 - Sub2OfTest1 Test2 - Sub1OfTest2 - Sub2OfTest2 Now iam at url: http://localhost/wordpress/category/test1 I write the following code on file category-test1.php <?php $categories = get_categories('child_of=2'); print_r($categories); foreach ($categories as $category) ...

Overriding wp_get_archives for a theme in Wordpress

I am working my way through customizing the Worpress default theme. I came up against an issue of formatting archive links. The default theme uses wp_get_archives function defined in general-template.php. The output of the function is customisable, but not customisable enough for me. I can achieve everything I want to do by basically ...

How to Build WP Site with Hierarchical Content and Using Custom Design?

A client asked me to redesign her web site, built several years ago in WP by another developer. Although I've never worked with WP before, I'm pretty comfortable with html, css, and php, and I more or less understand how WP stores content and dynamically builds pages. But I'm wondering how to approach these challenges: My client's sit...

Wordpress advanced navigation

Ok, so I've made a site template in pure html and I need to convert it into wordpress. The navigation code looks like this: <div id="header"> <div class="wrap"> <ul id="leftnav"> <li><a href="about.html">About</a><span class="arrow"></span></li> <li><a href="work.html">Work</a><spa...

Wordpress advanced navigation

Ok, so I've made a site template in pure html and I need to convert it into wordpress. The navigation code looks like this: <div id="header"> <div class="wrap"> <ul id="leftnav"> <li><a href="about.html">About</a><span class="arrow"></span></li> <li><a href="work.html">Work</a><spa...

Wordpress Authenticate Filter

Hi All, I'm currently trying to override Wordpress' wp_authenticate function (without modifying the core files, mainly pluggable.php), however I'm not sure if I'm going about it the correct way. There are two great references (see below), but they don't explicitly state what to do in order to prevent the login provided certain criteria ...