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 ...
Hi,
I installed wordpress Mu at http://www.optimalthinking.com/community/wp-admin/install.php
But when I visit http://www.optimalthinking.com/community/
I get
Security Alert! The PHP CGI cannot be
accessed directly.
This PHP CGI binary was compiled with
force-cgi-redirect enabled. This means
that a page will only be ser...
I have this table on MySQL. I want to query the port number for user_ids 1 and 2.
umeta_id user_id meta_key meta_value
------------------------------------------
1 1 nickname admin
8 1 userDir D
9 1 port 8080
10 1 paymentopt bankin
13 2 po...
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;
...
EDIT:
I have managed to get this class working and I have updated the correct code.
I would love not to use the [0] at the end of the value. Any way I can improve this code?
This class retrieves all custom keys for a specific post. Currently I use it for relating images and I have defined thre keys in my post: 'related_image', 'related_...
I'm putting together a web site that needed to include some signup and blogging capability. Wordpress seems to be a perfect fit for that portion of the app, so I've started experimenting with it. I see plenty of tutorials on creating custom themes so I don't expect that to be a problem.
What I'm not able to figure out is what to do wi...
Hi, I have set error reporting in my development environment to E_STRICT by adding to the top of my wp-config.php file:
ini_set( 'error_reporting', E_STRICT );
This shows many places where return values are passed by reference, eg $wp_the_query = &new WP_Query(); throws the error Strict standards: Assigning the return value of new by r...
Hi, i've been googling for these information two days now but i haven't founud a complete solution.
Hope some of you could give me some help, a good api or an example would be great.
I'm building a plugin for wordpress with a widget that displays some tags.
So i need to create a custom get parameter, let's call it 'mypar' and i'm able ...
I'm interested in modifying a template in a wordpress install to show related posts ... in my case, I think I'd be fine with just showing the latest 5 posts in the current post's category.
How would one do that without installing a plugin? I would rather modify the template in this instance
I've poked around on google trying to find...
Hi, i need to make a query in a wordpress plugin but i couldn't find a wordpress function and i'm not sure is right to use mysql_query
the functions i've found enable ordering and grouping but i need to use also join and in (list)
is there a way?
thank you
...
I have a table called "wp-posts" with a field "post-content". This field contains the text for a blog posts. I'd like to change all records to replace an URL for another one.
Imagine that I can have things like:
This is a test and somewhere there's something like <img src="http://oldurl.com/wp-content/somimg.jpg"> and something l...
Normally, if I want to force a link to open in a new tab (or window) when posting to my blog, I have to either use the link GUI and select "open in new window", or, since I use the HTML view by default, after inserting a link, manually add the "target=" portion of the tag:
<a href="http://link.to/something.great" target="_blank">link te...
My buddy wants to create a WordPress blog, but because he's picky about the design (specifically the fonts), he wants to use Flash for the frontend -- display, content creation, user interface, etc. He's looking for a plug-in that will take the user input from the Flash interface and convert it into the appropriate PHP for WordPress. I...
WordPress is so powerful.. but yet it is so weak with RTL Languages like Arabic and Hebrew...
I need to have the Front-End in Arabic and Admin area to stay in English and of course LTR..
If I use the Arabic version of wordpress.. Every thing including admin area will be in Arabic and RTL.. which will not be suitable at all..
In the same ...
I have looked and looked and tried to find an answer for what I've been looking for, but I have yet to see an answer for this:
I am trying to generate a Wordpress loop that takes all the posts from a single category and displays them three at a time inside <li></li> tags.
Output should look like this:
<li>My post title | Another Title...
having just completed first wordpress theme uploaded and working fine in FF, testing has revealed that the images in the following page do not display in safari and chrome.
http://www.isabelarbelaez.com/category/projects/so_it_goes
Anyone any ideas why? I cannot see why at all.
The images on the page display in FF, IE and Opera, just ...
I commonly run into a scenario where "the powers that be" want an exact copy of a page in multiple places on a website. Rather than actually duplicate the content, all I do is override the section in the nav that is highlighted, and then include the page. The final page looks something like this:
<?php
$top_nav_item_id = 'teen';
...
I have this problem joining across multiple tables and grouping by columns on those tables. I spent a few hours at work today with no success, I think I have a misunderstanding of joins or multiple column grouping.
I have included an SQL dump at the end of this post so you can see the database for yourself - it'll probably explain bette...
I have trouble finding an expression to automatically generate a new 'class' like the following:
<ul>
<li class="img1">link</li>
<li class="img2">link</li>
<li class="img3">link etc...</li>
</ul>
This is nested in 2 tabs for 'most read' / 'latest comments'. The different classes are so that I can make a different bullet (number) usin...
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?
...