Want to set wordpress website's page title - wordpress

In My wordpress website's page titles are start with >> symbol I want to remove that >> symbol so please help me..
and I'm using wordpress-seo plugin after that this problem is occuring

You have to modify your theme to do that.
Most likely you have to modify the header.php file using the wordpress theme editor.
Find the line where wp_title is called and call it with an empty string as first parameter.
When wp_title is called without any parameters it adds the leading » (») by default.
You can also trim the result of wp_title to avoid leading and trailing whitepspace.
Take a look at the following links too:
http://www.onlinenerd24.de/2008/09/29/remove-the-from-your-wordpress-title/
http://cuongdang.info/how-to-remove-the-arrows-%C2%BB-from-wordpress-titles.html
http://codex.wordpress.org/Function_Reference/wp_title (take a look at the $sep param)

Related

How to create a second header for woocommerce

I want to create a second header. One to implement in all pages of Woocommerce. The other one on the other pages of Wordpress. How can I write the code?
get_header('shop'); get_header('shop2');
There are few steps to do that:
- Duplicate your header.php file and name it header-{smth}.php. Replace {smth} with word that you want. For example: header-shop2.php
- Now you can call get_header('shop2')
Reference:
https://www.webascender.com/blog/create-multiple-headers-footers-wordpress/

From which wordpress file i can change this page's layout

I am currently using wordpress for the website development and i want to change this page's formatting which is having url
http://www.selfmadesounds.com/dev3/?catid=featured&slg=featured3
I need to change this page's formatting such that i can exclude out the extra things from this page.
you are probably looking for category.php.
If you are a beginner with templating / themes / wp in general, you can simply search for class="category" and add a small string INSIDE the div in all of the template files where the search hit, one by one , and see which one is the one you look for .
You can insert <? php echo 'This is my page'; > or simply insert XXXXXX.
but just make sure you are not doing so in header.php, sidebar.php or footer.php - those will in all likelihood will appear on ALL your pages . ( also functions.php is to be excluded , but not in all cases ..)
but like others said, you should read the codex page about template hierarchy. it can also be any other filename (custom-loops.php file, custom-category-filename.php etc. depending on theme.
Edit I
I think you are mixing a bit of concepts here .
this line :
http://www.selfmadesounds.com/dev3/?catid=featured&slg=featured3
Is not a page, it is a URL with get parameters , and it represents a query for category : Featured with Slug : featured3 .
As for itself , it is NOT a page , it is a Query ( and i suspect that it is a plugin or theme related ). The query later produces , or renders a page .
At any rate , my advice still stands , Put a dummy code inside all the template pages and see which ones is your page .
For the rest - if you will supply more info or code , people could help more .
You have to check the Wordpress Template Hierarchy, a quick guess would be single.php from the active theme, but there is no way to be sure other than actually searching in the theme

Custom Plugin for wordpress with hierarchy of SEF pages

Here's my issue. My company needs a vendor database added to our wordpress website. None of the existing plugins will even come close to what we need, and we already have a mysql database with all of our information, so we need to create a plugin or something to do what we need.
These urls need to be direct-accessible and have SEF urls. So, for example:
mysite.com/vendors/
mysite.com/vendors/pipe-manufacturers/
mysite.com/vendor/bobs-pipes/
And, the custom content needs to appear inside the wordpress template.
There are really 2 options:
1) Find a way to write our application outside of wordpress, but find a way to bootstrap wordpress to show the header, footer, and sidebar.
2) Run the app from inside wordpress.
So I went for option #2. I created a new template file named "vendor.php", and began working. I added this code to my functions.php of my theme:
add_filter( 'template_include', 'xyz_template_check' );
function xyz_template_check() {
global $template;
$rqst = $_SERVER['REQUEST_URI'];
$ra = split("/", $rqst);
if ($ra[1] == "vendors") {
$template_file = get_stylesheet_directory() . '/vendors.php';
return $template_file;
}
return $template;
}
So what the above code does, if it sees the word "vendors" as the first part of the url after the site name, it sends you to vendor.php. This works PERFECTLY....
except...
Wordpress believes that the page is not found. It returns a 404 header, and NOT FOUND into the page title and breadcrumb.
Adding a PAGE called "Vendor Database" with the permalink "/vendors/" fixes the main page. But there will be literally hundreds of vendors and different categories. I cant be creating a custom page for each one. This needs to be dynamic.
So, how do I make wordpress give a 200, and supply an acceptable page title, breadcrumb, etc.
Don't even get me started on the danged wp_title filter. This did NOT work as documented. Although, it just occurred to me that this might be an issue with Wordpress SEO (the wp_title filter issue).
Anyone got an idea on this?
Ok got this. The solution was to use the rewrite api, as mentioned above, to look for the pattern /vendors/, letting it know that it was a valid URL. Coupled with my existing template override, this is what I needed.

RSS feed does not validate on wordpress

I have an error message when I click on my site's rss feed url (both from feedburner and the original atom feed):
"This page contains the following errors:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error."
I Have check with The rss feed validator and this is what I got:
http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2FNoCamels
I tried everything they suggested (also restarted the plugins) - but nothing worked.
PLEASE, I need your help!
Yuval
You simply have a blank line outside php tags in your wordpress files.
You should check and remove blank lines in :
wp-config.php
functions.php of your theme
*.php in your plugins
...etc
Take a look here :
http://www.quickonlinetips.com/archives/2009/05/wordpress-feed-xml-parsing-errors/
I had the same problem. The culprit was the wp-trackback.php. Blank space at the bottom. I cleared the blank space and voila. RSS is working now.
I have also this question. I solved from error on line 2 at column 6
You simply have a blank line outside php tags in your WordPress files.
You should check and remove blank lines in :
wp-config.php
functions.php of your theme
*.php in your plugins
...etc
Take a look here

How do I prevent Wordpress from stripping the "at" sign (#) from the URL query string?

I am trying to pass an email address to a wordpress page like so:
http://www.website.com/?email=fakeemail#yeahwho.com
However, Wordpress turns it into this:
http://www.website.com/?email=fakeemailyeahwho.com
I even try URL encoding it like so:
http://www.website.com/?email=fakeemail%40yeahwho.com
But Wordpress is too smart and still removes the %40.
I understand that # is a reserved character, but I should be able to still use the URL encoded version. Alas, Wordpress does not want it to be so.
How can I force Wordpress to respect the # sign? I'm guessing I'll either have to hack the internals, or do some mod_rewrite magic.
from http://www.webopius.com/content/137/using-custom-url-parameters-in-wordpress
First, add this to your theme's functions.php file (or make a custom plugin to do it):
add_filter('query_vars', 'parameter_queryvars' );
function parameter_queryvars( $qvars )
{
$qvars[] = 'email';
return $qvars;
}
Next, try passing ?email=fakeemail-AT-yeahwho.com in the URL and then converting it back with something like this:
global $wp_query;
if (isset($wp_query->query_vars['email']))
{
$getemail = str_replace( '-AT-', '#', $wp_query->query_vars['email']);
}
// now use $getemail
This would only not work in the very rare occurrence of an email that actually has "-at-" in it. You could replace for an even more obscure string like '-AT6574892654738-' if you are concerned about this.
Whatever your final solution, don't hack the core to get it to work. :)
I was having a similar problem and I was able to isolate the issue to an SEO plugin. I'm sure the plugin added a filter to the functions.php but as the plugin wasn't being used uninstalling the plugin also resolved the issue.
I also had this problem, but it wasn't caused by a plugin. It was a result of the 301 redirect that WordPress does with regard to your Site URL having, or not having, a www. in it.
If my Site URL was defined as http://www.mydomain.com, then this would work as expected: http://www.mydomain.com/?email=user#domain.com
If the user came to the site as: http://mydomain.com/?email=user#domain.com (NOTE: no www), then WordPress would redirect to this: http://www.mydomain.com/?email=userdomain.com (NOTE: the stripped # symbol)
My solution was to hard code the www redirect in the htaccess file, so WordPress would never have the opportunity to mess with my URL. This page gives example htaccess lines to redirect non www to www and vice versa: http://dense13.com/blog/2008/02/27/redirecting-non-www-to-www-with-htaccess/
I was having a similar problem today when trying to pass Mailchimp data through to a Gravity Form in Wordpress. I found a solution. The original question stated that Wordpress was also stripping %40, but it didn't for me in this instance.
1) In Mailchimp create a new Merge tag. I called mine 'Email Param' and * |EMAIL2| *
2) Export your list of subscribers
3) Copy the normal 'email' column content into the new 'Email Param' column.
4) Do a Find and Replace for all # symbols to %40
5) Import your list and tick the box that Auto-updates that list
6) Update your URL to include the new parameter
* |EMAIL2| *
That worked for me.

Resources