WordPress鏂囩珷椤甸潰娣诲姞鏍囩(tags)鐨勬柟娉

  • A+
鎵灞炲垎绫伙細wordpress

涓鑸瑆ordpress涓婚鍦ㄦ枃绔犻〉闈㈢殑搴曢儴閮戒細鏈夋坊鍔犳爣绛(tags)锛屽亣濡傛病鏈夛紝涔熶笉鐢ㄦ厡锛屼笅闈㈠氨鍛婅瘔浣燱ordPress鏂囩珷椤甸潰鏍囩tags璋冪敤鏂规硶锛

WordPress鏂囩珷椤甸潰娣诲姞鏍囩(tags)鐨勬柟娉

鍗曡Е瑙掕殏铓佺殑鏂囩珷椤甸潰搴曢儴鏄剧ず鐨勬爣绛(tags)


1銆佸悗鍙扳啋澶栬鈫掔紪杈戯紝鎵撳紑鏂囩珷椤垫ā鏉縮ingle.php锛屽湪浣犻渶瑕佹樉绀烘爣绛(tags)鐨勫湴鏂癸紝娣诲姞涓嬮潰鐨勪唬鐮侊細

  1. <div聽id="article-tag">
  2. <?php聽the_tags('<strong>鏍囩锛</strong>聽',聽'聽,聽'聽,聽'');聽?>
  3. </div>

2銆佷负浜嗘洿濂界湅浜涳紝鍚庡彴鈫掑瑙傗啋缂栬緫锛屾墦寮浣犵殑CSS鏍峰紡鏂囦欢style.css锛屾坊鍔犱笅闈㈢殑CSS鏍峰紡锛

  1. /*tags聽style*/
  2. #article-tag聽{聽clear:聽both;聽border:聽1px聽dotted聽#ccc;聽padding:聽5px;聽margin-bottom:聽5px;聽}
  3. #article-tag,
  4. #article-cnt聽#article-tag聽a聽{聽text-decoration:聽none;聽color:聽#666;聽}
  5. #article-cnt聽#article-tag聽a:hover聽{聽text-decoration:聽underline;聽}

avatar

鍙戣〃璇勮

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

鐩墠璇勮锛3   鍏朵腑锛氳瀹  2   鍗氫富  1

    • avatar 娓稿 1

      澶х锛屾垜涔熺敤杩欎釜涓婚锛屾垜涓嶆噦浠g爜銆傛垜鎯抽棶涓涓嬪鏋滄垜鎯冲湪鏂囩珷鍒楄〃閭d釜闃呰娆℃暟鍚庨潰鏄剧ず鏍囩璇ユ庝箞鍋氬憿銆傛垜鎶婁唬鐮佸鍒舵坊鍔犱箣鍚庢爣绛惧嚭鏉ヤ簡锛屼絾鏄笉鏄窡鍦ㄩ槄璇绘鏁板悗闈紝鑰屾槸鍙﹁捣涓琛

        • avatar 鍗曡Е瑙掕殏铓 Admin

          @娓稿 娣诲姞杩欎釜鏍囩纭疄鏄彟璧蜂竴琛屽紑濮嬬殑锛屽簲璇ヨ窡鏍峰紡鏈夊叧鍚с傘傘傝繖涓富棰樻劅瑙夊緢濂斤紝杩樻病鎬庝箞鎶樿吘杩囷紝鐩存帴鎷挎潵鐢ㄧ殑

            • avatar 娓稿 1

              @鍗曡Е瑙掕殏铓 杩欐牱鍟婏紝鏈夋病鏈夊姙娉曡浠栦滑鍦ㄥ悓涓琛屽憿銆傚氨鏄寜鏃ユ湡 闃呰鏁 鏍囩 璇勮鏁拌繖鏍锋樉绀