Modify the built-in widgets of WordPress)

Source: Internet
Author: User
Tags wordpress blog wordpress version
Yesterday, filescn asked the forum how to modify the RSS address in the Widget feature of WP. I did not think about this kind of problem before, so I checked, some people said that the Wordpress built-in Widget code is written in the wp-includeswidgets.php, but I did not find (WordPress version 2.8, previous versions do not understand ), found a default-widgets.p under the Directory

Yesterday, filescn asked the forum how to modify the RSS address in the Widget feature of WP. I haven't considered this kind of problem before, so I checked it. Some people said that the built-in Wordpress Widget code is written in/wp-uplodes/widgets. php, but I did not find (WordPress version 2.8, previous versions do not understand), found that there is a default-widgets.p under the Directory

Yesterday, filescn asked the forum how to modify the RSS address in the "function" of the WordPress built-in Widget. I haven't considered this kind of problem before, so I checked it. Some people said that the built-in Wordpress Widget code is written in/wp-uplodes/widgets. php, but I did not find (WordPress version 2.8, previous versions do not understand), found that there is a default-widgets.php under the directory, it must be it.

It seems that every Widget in the default-widgets.php is written as a class. To modify a Widget, you only need to find the corresponding class. Take "function" as an example to find the corresponding class "WP_Widget_Meta ". The following code is provided in this class:


This section is output for widgets

The Wordpress built-in Widgets and its class name are attached as follows:

Widget name

Widget Class Name

Widget Introduction

Page WP_Widget_Pages WordPress page of your blog
Calendar WP_Widget_Calendar Document calendar of your blog
Document index Template WP_Widget_Archives Monthly archive of your blog posts
Link WP_Widget_Links Your chain table
Function WP_Widget_Meta Login/logout, management, Feed and WordPress links
Search WP_Widget_Search Search box for your blog
Text WP_Widget_Text Arbitrary text or HTML
CATEGORY directory WP_Widget_Categories List or category directory of the drop-down menu
Recent articles WP_Widget_Recent_Posts Recent articles on your blog
Latest comments WP_Widget_Recent_Comments Display the latest comment list on the sidebar
RSS WP_Widget_RSS Entries from any RSS or Atom feed
WP_Widget_Tag_Cloud The most common

You may also like:

  • Display the summary on the WordPress Homepage
  • WordPress for Android: easy to write blogs on mobile phones ~
  • How can I transfer a WordPress blog from one space to another?


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.