Hi, I am trying to integrate wordpress into a magento install but keep getting the following error when trying to include
Fatal error: Cannot redeclare __()
I assume this is because both magento and wordpress use this.
How can i get around this.
I have tried things like:
if(!function_exists('__()')) {
function __() {}
}
in b...
I've added a Wordpress sidebar widget and that caused the content of my blog posts to be shifted downwards, resulting in a large white space where the post used to start. The widget is in the right place but the post content is moved down. Is there a code I can add to restore the post content back to the top?
...
So I am trying to use jQuery infinite-scroll plugin in combination with some custom jQuery that loads a new loop from a different PHP file with AJAX. The infinite-scroll works on the initial page content, but I can't get it to work with the newly loaded content. Here's how the AJAX logic works:
click on a category
Get category ID which...
when upgrading to Wordpress 3.01 I thought the turbo link would disappear from the dashboard, as per http://codex.wordpress.org/Tools_Tools_SubPanel . However, the Turbo link still shows up in the header of my dashboard after the upgrade. How do I remove the Turbo link (even if I have to edit the core files to achieve this) ?
...
On our site we have a speakers page for courses. Main post has the bio and I have added a sidebar for each post to show picture and the excerpt. The excerpt only contains links to websites and their social media sites. The links in the excerpt don't seem to be clickable. http://www.socialmediaacademy.org.uk/index.php/course-speakers/ Is ...
While creating a new post in WordPress, how do I access the biographical info of the currently logged in user? I am asking because I created a new field called signature, and during post creation, I am making the biographical info as the default signature.
...
Currently the navigation menu (consisting of a list of posts) that appears on the front page of my wordpress site has the most recent post highlighted in it. However I don't want this. Is there a way I can change it so that on the front page the navigation doesn't have an on-state, but on all other post pages it does? Below is the code t...
I would like to restrict the fields while creating a new post in WordPress. For the title, it should not exceed 40 characters. For the content, it should not exceed 400 characters. If these maximum values are exceeded, I would like to show an error message and not let the user continue. How do I do that in WordPress?
...
While a user is creating a new post, how do I determine his current role?
...
I have recently moved my blog from one serever to another. I am now unable to restore my permalink structure.
Now my permalink strucure has become /?p=123. Whenever, I try to change it to any other custom permalink structure, it throws 404 for all the posts. Check the blog at http://microreviews.org
I have been forced to make the permal...
Without using any JavaScript library like JQuery, how do I show an error to the user if the title of the Post exceeds 40 characters? I would like to use WordPress API/ PHP for this.
...
hello all
i have a problem in putting image in my post, i could upload image on add new post (add pcture) , but when i click to insert to post button , it comes blank page
how may i fix this problem?
it works fine on localhost but i have this problem on my server
thanks
...
Hi,
I was wondering what the filter was to change the search term in Wordpress?
For example, if someone types in xxx, how could I change that to yyy before it goes into the wordpress search engine?
Cheers.
...
Hi,
Hoping someone can assist.
I have just created my "About Us" page inside WP Admin Dashboard, that points to an about-us.php page template that I created and has a empty div content, i.e.
<div id="content"></div>
It is in here where I would like to grab the content that the wp-admin user enters in the dashboard About Us page and ...
Hi,
I'm currently migrating my HTML website into a WordPress Theme and have the following question:
My current HTML website makes full use of jQuery's .load() function, by where I change the content of the page (via a DIV), using .load() based on my side menu options selected by the user.
For example:
HTML Code:
<div id="sidebar">
...
Hi. I've spent numerous hours trying to figure out how to get this slider to use li's with background images rather than img's.
The reason for this is that I intend to use the slider for Wordpress & many Wordpress themes apply their own css properties to images (such as 'max-width') which will often break the slider. I would appreciate ...
Hey
I want to create a custom page that has tournament brackets instead of the usual content. I have read some of the Wordpress documentation and found how plugins work and how I add admin pages to administer the page.
My question is: What is needed to create the page itself (and have it listed on the site)? Do I need to create a custo...
At various points of the day my WP permalinks keep breaking. When I'm using custom perms it works but then a few times during the day it just throws a Page Not Found. I fix it by setting perms to default, then back to custom and it works fine.
My Sys Admin can't figure it out. Hopefully a guru can lend some help?
...
I want to replace first word in title to have <span></span> inside.
Example for Wordpress title
<h2 class="entry-title"><a href="#">Welcome to Wordpress</a></h2>
I want to be like this
<h2 class="entry-title"><a href="#"><span>Welcome</span> to Wordpress</a></h2>
the function
function span_on_title($span) {
return preg_replace('...
Firefox works fine, Opera is great and Chrome works well also. IE is the issue. It seems to be ANY version of IE.
The site is http://s91532.gridserver.com and no matter where you click, it brings down our javascript menu from the top.
When you hover over the images it shows you the correct path and everything but when you click it just...