seo

How to get post title in WordPress?

此生再无相见时 提交于 2019-12-06 09:25:47
问题 I have WordPress site. So I make code to convert title of post to english from arabic but the code get the title of post from WordPress. I use plugin All in one SEO pack. So I add title to plugin on every page, not title of post but title in input All in one SEO pack. I want get the title of All in one SEO pack to convert it. Here is code for convert title in functions.php : function arb2en_title($post=0) { $text = get_the_title($_aioseop_title); /* function arb2en_title($post=0) { $text =

AJAX + SEO quick question

痴心易碎 提交于 2019-12-06 09:21:05
When users want effects to happen between page loads (ie, old content fades out then new content back in), I typically build the site as follows: index.php, about.php, etc... <?php if(@$_SERVER['HTTP_X_REQUESTED_WITH']==''){include('includes/header.php');}?> <content>blah blah blah</content> <?php if(@$_SERVER['HTTP_X_REQUESTED_WITH']==''){include('includes/footer.php');}?> this way, if Javascript is enabled, I can dynamically load the content and do whatever effect is desired, but the page still function if the jscript is disabled. When I do this, though, is it possible to dynamically load

Will Google see rel=nofollow if it is added by jQuery?

南楼画角 提交于 2019-12-06 09:16:48
I'm adding a rel=nofollow attribute to links via jQuery after the page load. Will Google see this attribute? I can't find anything in Google's official documentation. Although Google processes JavaScript and can index a lot of dynamic content, there's a special behavior when inserting rel=nofollow dynamically. It was tested [1] and they came up with this result: The nofollow in the DOM did not work (the link was followed, and the page indexed). Why? Because the modification of the a href element in the DOM happened too late: Google already crawled the link and queued the URL before it executed

Does the user agent string have to be exactly as it appears in my server logs?

大城市里の小女人 提交于 2019-12-06 08:33:49
问题 When using a Robots.txt file, does the user agent string have to be exactly as it appears in my server logs? For example when trying to match GoogleBot, can I just use googlebot ? Also, will a partial-match work? For example just using Google ? 回答1: Yes, the user agent has to be an exact match. From robotstxt.org: "globbing and regular expression are not supported in either the User-agent or Disallow lines" 回答2: At least for googlebot, the user-agent is non-case-sensitive. Read the 'Order of

xpath in =importXML() for extracting meta descriptions

元气小坏坏 提交于 2019-12-06 08:33:15
问题 I'm trying to use Xpath to pull in the meta descriptions from web pages, using Google Sheets. I have this working to pull in the titles: =importXml(www.example.com; "//title") Here are two sources of my learning: http://seogadget.co.uk/playing-around-with-importxml-in-google-spreadsheets/ http://docs.google.com/support/bin/answer.py?hl=en&answer=75507 I have read many other posts on this site, and this seems to be the similar idea of what I want: "/html/head/meta[@name='description']/@content

SEO中11个最常见的问题解答

北战南征 提交于 2019-12-06 07:40:35
初学者最经常会提到这些问题: 1、帮我看看我的站点 XXX.XXX.com SEO 得怎么样? 简单的 SEO 评估,我们主要从这几个方面: 网站导航和链接是否采用 Html 方式实现。 是否实现 URL 静态化。 关键词优化是否到位,包括标题的书写、关键词的设置、关键词密度控制等。 网站结构是否合理,是否有简单的 SEO技巧。 2、搜索引擎一般多长时间更新一次,SEO 多长时间有效果? 搜索引擎基本每天都更新网页数据库,隔两三天都会对每个关键词进行一次排名。一般情况下,对于具体的某个关键词,其搜索结果不会突然发现巨大的 变动。我们很少看到某关键词的搜索结果前10位突然都换成其他的了,除非搜索引擎进行算法修改。但对于具体某一个网站,如果受惩罚或降权,可能一夜之间排 名发生巨大变化。SEO 的效果,我们一般是说3-6个月,但也根据具体情况而变。 3、域名对 SEO 影响大吗? 我们认为学校(.edu)和政府部门(.gov)的网站以及其所对应的域名会有比较高的权重。其他的域名后缀(.com/.cn/.org /.net/.cc 等)在站点刚上线一段时间内或许有点差别,但对于成熟的站点,这方面的影响不存在。域名中包含关键词,对排名有帮助,如:www.seoai.cn 中的 SEO。 4、百度(Google)为什么不收录我的站点? 一般情况,内容不违规的站点是都会被收录的

Any Ideas for Developing a Multi Language Site - SEO, php, mysql

左心房为你撑大大i 提交于 2019-12-06 07:21:48
问题 I have just finished a client’s website and now they want to have different languages. At the moment the sites content is stored on tables in a MySQL db: pages : seotitle , seodesc , smallHtml , fullHtml products : ID , seotitle , seodesc , smallHtml , fullHtml I was thinking a good way to do it would be to have an extra table: languages : ID , LanguageCode , language Then modify the pages and products table to: pages : slug , seotitle , seodesc , smallHtml , fullHtml , languageCode products

Schema.org setup for related products?

戏子无情 提交于 2019-12-06 07:20:08
问题 I would like to setup Schema.org markup for related products. I have tried this code but I have doubt in my mind: itemprop="isRelatedTo" itemscope itemtype="http://schema.org/Product" My product page is https://www.amigotrekking.com/everest-base-camp-trek.html 回答1: If it’s a "functionally similar" product, use the isSimilarTo property. If it’s a "consumable" for another product, use the isConsumableFor property. If it’s an "accessory or spare part" for another product, use the

rewriting php application to get seo friendly url's

孤街浪徒 提交于 2019-12-06 07:18:11
问题 I have php application which have to be partially rewritten because of the customer request to have SEO frendly urls. My links are as follow: www.mysite.com/articles_en.php?artid=89, where I will have to change the url in this: www.mysite.com/articleTitle Then I have this url: www.mysite.com/halls.php?fairid=65 which should become www.mysite.com/fairname And www.mysite.com/companies.php?fairid=65&hallid=23 which should become www.mysite.com/fairname/hallname You get the idea. I need a help

Is it a good idea to use <a href=“http://name.com” rel=“noindex, nofollow”>name</a> in this situation? [closed]

梦想与她 提交于 2019-12-06 06:53:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a network of about 200 blogs (Wordpress Multisite), and all of them show links to all the other ones on a sidebar on the right hand side (basically 200+ links on the right hand side of every single page). I have it set to rel="nofollow" now, but I was wondering if changing it to rel="noindex, nofollow"