wordpress

PHP: Can I put an if statement inside a variable?

I'm still somewhat a beginner to PHP, so sorry if this is a dumb question =) What I'm trying to do is in a WordPress blog, insert a custom field with multiple values ("ingredients") into my RSS feed. (I also have other posts which are not recipes, which is why the headings "Ingredients" and "Instructions" are inside the if statement.) H...

Why is Wordpress Jquery broken?

Well I have really strange problem with the wordpress and with Jquery. Since few week ago when we upgraded the hosting, the Wordpress Jquery in the ACP and in some parts of the widgets on the site is broken. I tried disabling plugins it's same. Tried reinstalling and not adding any plugin, still same. Tried downloading and adding new Jqu...

How to show Wordpress latest post on another website?

I had a request from a client to show the latest post in their blog on the homepage of their site. What is the simplest way to show a snippet or full post from their blog in their main site? ...

Can anybody send me links of some good tutorial about wordpress development.

Hi, I want to learn wordpress from scratch can anybody send me some good links from where i start my wordpress learning. Thanks. ...

session variable on a Wordpress site changing only in firefox

Ok, so this is the weirdest bug I have ever run into, hopefully I can explain it well enough. so, if you go to Seaandbescene.com then click on one of the province links at the top(nova scotia, newbrunswick, etc.) then click one of the categories below(entertainment, shopping etc..) it should remember what province you are in because I s...

BuddyPress slug prefix

At the official BuddyPress website http://buddypress.org/ They are running a single WordPress installation with BP. However for some of the pages they have prefixed them with /community/ for example: http://buddypress.org/community/members/ not all slugs have been prefixed for example http://buddypress.org/register/ Any ideas on how thi...

Removing href from dynamic item?

I'm trying to remove the link href from an unordered list item. The menu has been created by wordpress and I'm trying to remove the link from the first item, so that when I user rolls over the item the menu still drops down but the very first item (the one that triggers the drop down) isn't clickable. Currently I just have href="#" in ...

How can I prevent strange characters when pulling the atom feed from a wordpress 3.0 blog

I have an atom feed on a wordpress blog here: http://blogs.legalview.info/auto-accidents/feed/atom When I download the text of the file and display it on my site, I get strange charactes like the accented 'A' here: Recent studies are showing that car accident -related fatalities have declined almost 10% since 2008. The reason for t...

jQuery Cycle pagerAnchorBuilder Wordpress Modularity Theme

The Modularity Wordpress theme includes a "post slider" built around jQuery Cycle. It uses pager to display a small number above the sliders. I would love to be able to change that number into the post title. The code in the theme is as follows: $doc_ready_script .= ' jQuery(function() { jQuery("#slider-posts").cycle({ fx...

wordpress - unique theme for different pages

Hi all, I am new to wordpress. I am trying to build a custon website based on it. I know some php and quite good html \ css \ js. I wanted to know if it's possible to set a uinque theme for different pages? Thank you! ...

Recover data from a dropped/truncated MySQL table

I just spend a few hours putting together a table full of data, and just decided to drop a WP installation in the same database. I expected WordPress to leave my table as it was and simply add the WP_* tables, but apparently the install wiped my database before installing the wordpress tables. I have full access to the server root. Is t...

Dynamic Sidebars For Wordpress Subpages

I am building a site in Wordpress. It has multiple subpages, many of which require different sidebars. So, I have a widgetized theme and I have also created a few sidebar widgets. I have written a conditional statement to show different sidebars on different pages. However, one widgetized sidebar displays on almost all pages despite the...

Complete flash wordpress theme is possible? (with a php pipe of course)

Is possible to have the posts loaded into an swf using the wordpress framework? i mean, i want to write a post using the wordpress wp-admin interface and then see the result in a swf... I know that if i access using a php pipe the mysql server i can retrive the posts, but as i said i want to use the facebook framework... Is out there an ...

My site a core php site and it is relate with the wordpress blog any security measures we have to take or not

Hi, My site is a core php site and it is relate to a wordpress blog. For e.g www.example.com/blog Here the blog ia s wordpress page and other than that all site is normal php page. So my server support told that the relationship between the wordpress blog and a php page is not very secure. So how could i do to make it secure. ...

Impossible to remove top marging with CSS (Wordpress Theme)

I really tried everything but I still can't remove the top margin of a page (aproxximately 20px). Here is the original page: http://blog.robin.idv.tw/ (If you inspect the #container div you'll see it has space above but no margin nor padding which displays purple or yellow) Here is the modified code: header.php: <!DOCTYPE html PUBLIC...

How can showing text in a post only for the author .. wordpress !!

Hi all .. h r u? In Wordpress , I want when the author of the post reading his post showing text like' Delete Post , Edit Post , .... etc" only for the author not for all .. First: I want to know the id of user login Second: I want to know the id of author .. 3: if($user_id_login == $id_author){ echo 'Delete Post , Edit Post ... et...

How to access methods from a class based wordpress plugin?

I have a plugin which registers a post type, taxonomy and handles some business logic. I went ahead and made my perfectly working plugin OO based and now it only works some of the time. Its set-up like the following: class Fruit { public function __construct() { add_action('init', array(&$this, 'init')); ...

remove anchor element around Wordpress images with filter (or jquery)

Hi. I have an anchor element like this: <a href="/link-to-image/" rel="attachment wp-att-7076"><img src="/uploads/img.jpg" alt="" title="" width="1268" height="377" class="alignnone size-full wp-image-7076" /></a> (It's the standard way of Wordpress to embed uploaded pictures in a post.) I want to remove the anchor around the image ...

Very strange problem with Wordpress Blog

Hi all, http://onlinedienstleister24.de/ has 2 designs. After I changed the design all settings were saved successfully, yet I still get the old style... so I have deleted the old one. If you click on a link in the menu: Dienstleistungen Wir über uns Impressum & Kontakt you get the new design and all is ok, but on the first visi...

Wordpress theme with multiple color schemes

I am building a WP theme and want to implement multiple color schemes. I looked through different free and premium themes and found out that this feature is developed different ways there and here. What is the best practice to make multiple color schemes support in a theme? ...