-1

所以我有这段代码,它是一行中的一个小部件,称为小部件文本。

a:15:{i:8;a:3:{s:5:"title";s:0:"";s:4:"text";s:157:"<div align="center"><A href="http://mvprop.com/Deals-and-Specials"><IMG border=0 
      alt=Deals and Specials 
      src="dealsandspecials.gif"></A></div>";s:6:"filter";b:0;}i:14;a:3:{s:5:"title";s:0:"";s:4:"text";s:153:"<div align="center"><A href="http://mvprop.com/24-Hour-Recording><IMG border=0 
      alt=24 Hour Recording 
      src="24hourrecording.gif"></A></div>";s:6:"filter";b:0;}i:16;a:3:{s:5:"title";s:0:"";s:4:"text";s:147:"<div align="center"><A href="http://mvprop.com/We-Will-Buy-Now"><IMG border=0 
      alt=We Will Buy Now 
      src="wewillbuynow.gif"></A></div>";s:6:"filter";b:0;}i:20;a:3:{s:5:"title";s:0:"";s:4:"text";s:123:"<div align="center"> <A href="http://mvprop.com/FAQS"><IMG border=0 
            alt=FAQS
      src="faqs.gif"></A></div>";s:6:"filter";b:0;}i:21;a:3:{s:5:"title";s:0:"";s:4:"text";s:136:"<div align="center"><A href="http://mvprop.com/about-mvp"><IMG border=0 
            alt=About MVP 
      src="aboutus.gif"></A></div>";s:6:"filter";b:0;}i:23;a:3:{s:5:"title";s:0:"";s:4:"text";s:163:"<div align="center"><A href="http://mvprop.com/Deals-and-Specials"><IMG border=0 
            alt=Deals and Specials 
      src="dealsandspecials.gif"></A></div>";s:6:"filter";b:0;}i:24;a:3:{s:5:"title";s:0:"";s:4:"text";s:153:"<div align="center"><A href="http://mvprop.com/We-Will-Buy-Now"><IMG border=0 
            alt=We Will Buy Now 
      src="wewillbuynow.gif"></A></div>";s:6:"filter";b:0;}i:25;a:3:{s:5:"title";s:0:"";s:4:"text";s:159:"<div align="center"><A href="http://mvprop.com/24-Hour-Recording><IMG border=0 
            alt=24 Hour Recording 
      src="24hourrecording.gif"></A></div>";s:6:"filter";b:0;}i:26;a:3:{s:5:"title";s:0:"";s:4:"text";s:152:"<div align="center"><A href="http://mvprop.com/Sell-Your-Home"><IMG border=0 
            alt=Sell Your home 
      src="sellyourhome2.gif"></A></div>";s:6:"filter";b:0;}i:27;a:3:{s:5:"title";s:0:"";s:4:"text";s:143:"<div align="center"> <A href="http://mvprop.com/WE-Will-Buy"><IMG border=0 
            alt=We Will Buy 
      src="wewillbuy.gif"></A></div>";s:6:"filter";b:0;}i:28;a:3:{s:5:"title";s:0:"";s:4:"text";s:161:"<div align="center"> <A href="http://mvprop.com/We-Make-An-Offer"><IMG border=0 
            alt=We Will Make An Offer
      src="wemakeanoffer.gif"></A></div>";s:6:"filter";b:0;}i:33;a:3:{s:5:"title";s:0:"";s:4:"text";s:170:" <br> <font size="2px face="Arial, Helvetica, sans-serif"> <br> Are you an Investor? <br> Are you tired of 
the stock market and looking for a better rate of return? </font>";s:6:"filter";b:0;}i:34;a:3:{s:5:"title";s:0:"";s:4:"text";s:126:"<a href="../../investments/Questions.pdf"><img src="../../investments/top-ten.jpg" width="236" height="250" border="0"></a> 
";s:6:"filter";b:0;}i:35;a:3:{s:5:"title";s:0:"";s:4:"text";s:145:"  <div align="center"><A href="http://mvprop.com/investments"><IMG border=0 
            alt=Investors
      src="151-test-new2.jpg"></A></div>";s:6:"filter";b:0;}s:12:"_multiwidget";i:1;}

显然我在这段代码的某处删除或添加了一个空格。

现在它不起作用。现在我该怎么做?变化在第二部分的某个地方。如果没有办法修复它,有没有办法重建小部件?

4

2 回答 2

1

那在您的 {wp-prefix}_options 表中吗?

我不知道它是否可以轻松修复。尝试使用 PHP 的unserialize()函数来读取这些值

但是,您可以通过将字段值设置为来重置它a:0:{}并重新开始构建小部件。

于 2012-07-26T06:18:51.980 回答
0

我只是制作了另一个小部件来解决我的问题。

于 2012-07-26T11:19:56.670 回答