wordpress

WordPress Author Link

I have the following code to show the gravatar of a post author, but how do I like it to the author profile of that user? <a title="View posts by ###" href="###"><?php echo get_avatar( $email, $size = '64' ); ?></a> EDIT This is my index.php file <?PHP get_header(); ?> <script type="text/javascript" src="<?php bloginfo('temp...

Randomly Order Posts on WordPress Loop

Hi, I have the following code that shows 5 posts each being the latest from an author. Want I want to do is show the these 5 posts in a random order so that no author gets precedence over the other. To clarify this is the ordering of these 5 posts and NOT the posts of the author. Thanks code: <?PHP get_header(); ?> <script type...

Reuse Variable across Wordpress Templates

Hi, I query some information in my wordpress blog's header. How can I reuse the variable say in the sidebar of the blog? If I try something like this in the sidebar, the output stays blank: <?php if(isset($my_header_variable)) echo $my_header_variable; ?> ...

nginx error " 504 Gateway Timeout"

Hi, i run wordpress on nginx, when i post a comment for my post, i get this error "504 Gateway Timeout" with nginx, can anybody tell me how to get rid of this error? Thank you! ...

Use Rails' CSS stylesheet for other CMS or sites

When a CSS is called from a browser, Rails combined all CSS files into one: all.css?random-section-id-number (e.g. all.css?2342568659756352) Each time it expires, the number changes. I am sharing this CSS file with Wordpress, and I want Wordpress to call the same CSS so that it reduces the HTTP request. But if I put all.css, it will ...

Best practices for displaying a webpage in different languages

I would like to deploy a webpage in different languages (German and English). As a backend solution I would use Wordpress running on a nginx/PHP/MySQL stack on Linux. From various posts here I think that looking at the browser locale (the ACCEPT-LANGUAGE field in HTTP request) is a good first try for setting the correct language. Of cou...

Wordpress with ASP.NET MVC

I have Wordpress in a subfolder in my site named blog. When I goto the url of my site /blog/ I get the error 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. This use to show the default theme and an empty blog. I think it may be a routing...

How can I hardcode the Nextpage tag into a Wordpress theme file?

I have a custom post type for a Slideshow which uses Custom Post Meta to insert the different slides. How can I code the <!--nextpage--> tag in between the sides in my slideshow.php so that they slides will paginate? Right now when I try to do it the code doesn't show because it by it's nature it commented out. ...

how to center a facebox ajax request properly?

My wordpress template uses facebox to display portfolio images via ajax requests. The problem is the images load in different positions depending on the viewers screen size. My template uses $('#facebox').css({ top: getPageScroll()[1] + (getPageHeight() / 10), left: 385.5 }).show() The facebox site uses $('#facebox')...

Wordpress Theme Gallery Previewing W/ Individual Content

Many wordpress developer sites offer theme previews. Some just use a standard plugin that lets you toggle between themes, using the same content on each. But other, more professional sites like rockettheme.com, elegentthemes.com etc etc, actually have true previews with individual posts and settings specific for that theme. Is this ju...

How to get rid of the "Leave a Comment" text in Wordpressa after deactivating "Allow comments"?

I deactivated "Allow commments in my page. But I still can see a "Leave a comment" link, how do I remove that text just for this contact page? my template: contact.php: <?php /* Template Name: Contact */ $body ="blog"; get_header(); ?> <div id="content"> <div class="container"> <div id="content-top"> <div id="picture"> <ul>...

[Wordpress] Find post categories or tags when editing a post

I'm trying to figure out how to find a post category or tag when editing a post in wp-admin. I need this because I want to show some modules in the editor only for a post of a certain category. Is there a way to accomplish that result? ...

Check in Wordpress if user with ID or name X is online

Hi, is there any way to chekc if a user with a special id is online in Wordpress? ...

I have finished the layout design (html & css), what should i do to convert it to a wordpress theme.

http://www.faressoft.org/BlueCristalTheme And http://www.faressoft.org/BlueCristalTheme/postView.php What is the next step ? ...

jQuery Scrollable inside WordPress Theme

Hi, Hoping someone can assist. I would like to use the following jQuery Scrollable plugin (which is displaying 5 photos per pane), from http://flowplayer.org/tools/demos/scrollable/plugins/index.html on a Page in my WordPress theme but in a way that will allow the WP Admin user to go into this page and add/remove any images they want w...

Implementig uploadify in a wordpress template?

hey guys, it's my first time using uploadify and i'm trying to implement it into a wordpress page template. I have a template which should users of my website allow to upload files (or more files at once) to a specific folder on my ftp-server. I want to use uploadify therefore. I really need your help, because i have no idea how i have...

PhpUnit for Wordpress

How can I use phpunit to test a wordpress module in different WP versions ? I found this tutorial : http://codex.wordpress.org/Automated_Testing but i don't think you can select the right WP version. Also I would like to run PhpUnit directly not using wp-test.php. ...

wordpress categories

hi i am creating a theme which consists of two pages, blog and portfolio. therefore i have categories which related to the portfolio posts (ie. web design, graphic design) and categories relating to the blog posts (ie. tutorials, todos) i have two pages (/blog and /portfolio), in each, i would like to show the list of categories relat...

Broken Category/Tag Previous Entries/Next page links in Wordpress.

When I view the list of posts in one category the links for Previous Entries/Next Page are broken: Instead of: /blog/category/category-name/page/2/ I get: /blog/page/2/?category_name=category-name And that takes me to page/2/ of all my blog posts so page 2 of category-name is not accessible. I changed some code in my template but I cou...

How to Create a Dropdown menu in Thesis Sidebar?

I have an issue with Thesis Wordpress theme. I want to create a dropdown menu for my categories and archives in the sidebar, not the navigation menu. If anyone knows how or can point me to a website where this is explained I will be grateful. ...