wordpress
-
1.將檔案上傳到主機的資料夾 您可能會看見下面畫面。 意思是你的檔案中沒有config.php這個檔案,這時您可以自己建立一個 [caption id="attachment_370" align="alignleft" width="600" caption="wordpress安裝問題"][/caption] 2.填寫 Database Name資料庫名稱: User Name 帳號: Password密碼: Databa”……” 詳細
-
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"> <?php $soContent = $post->post_content; $soImages = '~<img [^\>]*\ />~'; preg_match_all( $soImages, $soContent, $thePics ); $a”……” 詳細
-
我們在發布文章時候,如何讓不同屬性的文章頁面,有不同的呈現效果呢? 例如在最新消息、與產品刊登時,不同頁面設計一樣的感覺未免太過單調 首先我們可以新增一個php頁面在你所選用的外觀模組資料夾中 例如 wp-content\themes\creative1 我在自己所設計套用的模版中 新增了一個頁面命名為 archive_news.ph”……” 詳細
-
相關文章 <ul> <?php $tags = wp_get_post_tags($post->ID); if ($tags) { $first_tag = $tags[0]->term_id; $args=array( 'tag__in' => array($first_tag), 'post__not_in' => array($post->ID), 'showposts'=>10, 'caller_get_posts'=>1 ); $my_query = new WP_Query($arg”……” 詳細
-
取得時間:2009/05/8 17:06 <?php the_time(' Y/m/j G:i') ?> <?php the_time('Y m/j') ?> 分頁<?php wp_list_pages(); ?> <?php wp_list_pages('title_li=<h2>Page</h2>'); ?> 文章列表<?php wp_list_categories(); ?> 文章代碼<?php post_class() ?>”……” 詳細
-
不知怎麼改常常都出現亂碼 終於找到方法 開啟wp-includes/wp-db.php 搜尋$this->dbh = @mysql_connect($dbhost, $dbuser, $dbpassword, true); 下面增加 $this->query("SET NAMES 'utf8'"); 此方法會修正資料庫出來的中文字 但原本頁面上的中文還是有亂碼的畫 若您是用Dreamweav 請在”……” 詳細
-
<label for="s"><?php _e('Search:'); ?></label> <form id="searchform" method="get" action="<?php bloginfo('home'); ?>"> <div> <input type="text" name="s" id="s" size="15" /><br /> <input type="submit" value="<?php _e('Search'); ?&g”……” 詳細
-
網路有多無限大呢?似乎還是不夠無敵。解決這個問題我大概找了好久,到搞定整整花了將近24小時。設計師要搞到去了解程式,果然不是容易的。 最後答案呢,還是找尋多個解決問題後組合,才有了此結果。有分享就會有回饋,如果能有更專業的人來提供做法,小妹我也是感激不盡。 先說明一下要做的這個東東是甚麼 [c”……” 詳細
