说说WordPress的主查询函数-query_posts()

今天说说WordPress 的主查询函数 -query_posts(),因为我正在制作的主题里面多次用到了这个函数 。   query_posts()查询函数决定了哪些文章出现在WordPress 主 循环(loop)中,正因为如此,query_posts函数仅用于修改主页循环(Lo...

2012-11-30 11:06:48

阅读数:9

评论数:0

wordpress提取文章(最新,最热,随机)

1. WordPress中获取最新文章的代码 <li> <h2>最新文章</h2> <?php query_pos...

2012-11-30 06:10:11

阅读数:8

评论数:0

wordpress自定义个性化首页

自己好不容易折腾了个wordpress博客,发现所有人的首页样式都大同小异,是不是很没创意,很扫兴?下面就来说说如何制作一个wordpress个性化首页,让你随心所欲的改变首页的样式,让你有个不一样的主页。   一、 设置wordpress首页 wordpress有设置page页作为...

2012-11-29 06:32:21

阅读数:23

评论数:0

magento图片处理 Customize Magento’s Image Resize Functionality

1. Customize Magento’s Image Resize Functionality   Need to remove the white border around your images? Don't want everything to be square? Here ...

2012-11-29 01:16:32

阅读数:9

评论数:0

magento EAV数据库Magento EAV structure & role of eav_attribute’s backend_type field

Introduction: Magento database is based on EAV(Entity Attribute Value) architecture. And it uses this architecture especially for categories, pr...

2012-11-29 00:21:04

阅读数:7

评论数:0

magento变换编辑器How to use WYSIWYG editor (TinyMCE) in custom Admin Magento Module

Rich text editor(TinyMCE) is an often requirement for Admin Module as it makes the content editing work much more easier. In order to enable TinyM...

2012-11-29 00:20:22

阅读数:9

评论数:0

magento 获取用户信息 How to get customer First Name, Last Name , Email Address ...

1. How to get customer First Name, Last Name , Email Address or Details in magento Before geting the details of a customer you must to hav...

2012-11-15 12:59:15

阅读数:14

评论数:0

magento 开发模式 Configuring Magento for Development / Debug Mode

Configuring Magento for Development / Debug Mode: 1. Disable Cache System > Cache Management > Select All [check-boxes] ...

2012-11-14 01:15:17

阅读数:3

评论数:0

magento检测登录How to check if customer is already logged in from another location?

In order to check whether the current user is logged in or not, we can easily find out using the following code: if(Mage::getSingleton('customer/ses...

2012-11-14 01:12:16

阅读数:5

评论数:0

magento创建动态菜单 Create Dynamic CMS Navigation For Magento Frontend

Introduction As you know in Magento, catalog has dynamic menu but cms doesn’t in frontend. If you are curios about how to create dynamic menu for C...

2012-11-14 01:06:43

阅读数:2

评论数:0

magento 数组转object How to convert an array to a collection object in magento?

Scenario Suppose say we have an array of data fetched from database. And we want to merge it with Magento collection object or want to provide ...

2012-11-14 01:03:08

阅读数:3

评论数:0

magento添加fancy页面 Creating fancy FAQ page in Magento – an easier approach

Introduction Just keep reading this tutorial which will teach how to create a fancy FAQ with expandable/collapsible feature in an easier approach....

2012-11-14 00:59:22

阅读数:4

评论数:0

magento 时间处理 Playing with Dates in Magento

Introduction Being a PHP developer, you are no way hiding from PHP’s date() function. In case of Magento, makes an usage of timezone which is c...

2012-11-13 13:45:32

阅读数:4

评论数:0

magento 添加上传功能 Adding upload field in contact form and send as attachment

Introduction Nowadays most of the clients wants extra fields in contacts form of magento to fulfill their requirements. And adding custom fields o...

2012-11-13 13:38:30

阅读数:9

评论数:0

magento 合并登录和注册页面 Merging registration form with default login page of magento

In customer.xml within your theme you can move the account register block to within the login page. <reference name="content&...

2012-11-13 13:30:07

阅读数:4

评论数:0

magento如何获取产品属性值 How to Obtain Custom Attribute Values in Magento

Today let’s talk about Magento and custom attributes. With Magento you can create as many custom attributes for your products as you like, and th...

2012-11-10 05:07:20

阅读数:6

评论数:0

magento 获取产品存货量以及configurable product 下associated children product信息

Magento – Get Product Stock Quantity To get the quantity in stock for a particular product in Magento use the following code - $qtyStock = Mage::...

2012-11-10 02:08:32

阅读数:5

评论数:0

Magento 获取有效属性 Display available options for attributes of Configurable

1. 获取全部 //get Product $cProduct = Mage::getModel('catalog/product')->load($_product->getId()); ...

2012-11-07 12:45:46

阅读数:6

评论数:0

Magento获取产品自定义属性及对应的值

自定义产品属性后,通常可以设置其是否在产品查看页中显示,可显属性将会出现在additional information 中。但是这边我需要在分类列表页中调用产品特定的属性。   在列表页循环获取对应产品的id之后,直接输出产品的所有属性内容会太多,getData等取出的信息又过于简洁。总之用起...

2012-11-07 10:45:40

阅读数:19

评论数:0

PHP判断字符串是纯英文、纯汉字或汉英混合

PHP判断字符串是否为中文(或英文)的方法,除了正则表达式判断和拆分字符判断字符的值是否小于128   外还有一种比较特别的方法。 使用php中的mb_strlen和strlen函数判断 方法比较简单:分别使用以上两个函数以当前编码测出字符的返回值,然后比较返回值。 返回值相等的...

2012-11-06 06:29:05

阅读数:7

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭