Read more…

Link Jumps to More or Top of Page

WordPress မွာ ပို႕စ္ အရမ္းရွည္ေနလွ်င္ ပို႕စ္ေခါက္ဖို႕ (သို႕) ပို႕စ္ေခါင္းစဥ္ကို ႏွိပ္မွ အျပည့္အစံု ဖတ္ႏိုင္ေစဖို႕ More tag ထည့္သြင္းေပးထားႏိုင္ပါတယ္။

wordpress read more

ပိုစ္ အျပည့္အစံု ဖတ္ရႈဖို႕ ၀င္ေရာက္လိုက္လွ်င္ More tag ထည့္ထားတဲ့ ေနာက္ပိုင္းကို တန္းေရာက္သြားၿပီး စာျမည္းအျဖစ္ ေဖာ္ျပထားတာေတြ ျပန္ဖတ္ဖို႕ Scroll up ျပန္ဆြဲေပးေနရတာ သတိျပဳမိၾကပါလိမ့္မယ္။ Post title (သို႕) More… ဆိုတာေလးကို ႏွိပ္လိုက္ရင္ ပို႕စ္အစ ကေန စၿပီး ေဖၚျပခ်င္တယ္ဆိုရင္ ⁄wp-includes/post-template.php မွာ အနည္းေျပာင္းလဲေပးရပါမယ္။

. "#more-$id\">$more_link_text</a>";

ဆိုတဲ့ ကုဒ္ ကိုရွာၿပီး

."\">$more_link_text</a>";

နဲ႕အစား ထိုးေပးလိုက္ရင္ အဆင္ေျပပါၿပီ။ တစ္ခုပဲ သတိျပဳရမွာက WordPress Upgrade လုပ္လိုက္ရင္ ျပဳလုပ္ထားတာ ေပ်ာက္သြားမွာျဖစ္ပါတယ္။

 

Designing the More Tag

More Tag နဲ႕ေခါက္ထားတဲ့ ပို႕စ္မွာ More… , Read more… ဆိုတာေတြအစား ႏွစ္သက္ရာ ေျပာင္းလဲခ်င္တယ္ ဆိုရင္ အသံုးျပဳထားတဲ့ Theme ရဲ႕ Index.php မွာ ေျပာင္းေပးရပါမယ္။

<?php the_content(__('Read more'));?>

အဲဒီက Read more ဆိုတဲ့ေနရာမွာ လိုခ်င္သလို ေျပာင္းေရးေပးလိုက္ရင္ အဆင္ေျပပါၿပီ။ Post title ကိုပါ ေဖာ္ျပခ်င္တယ္ဆိုရင္

<?php the_content("...continue reading the story
called " . get_the_title('', '', false)); ?>

ဒီလို ေျပာင္းေပးလို႕ရပါတယ္။ ပံုေလးေတြပါ ထည့္ခ်င္တယ္ဆိုရင္

<?php the_content('Read more...<img src="/images/leaf.gif"
alt="read more" title="Read more..." />'); ?>

အခုလိုထည့္ေပးလိုက္ရင္ အဆင္ေျပပါၿပီ။

 

Popularity: 28% [?]

About the Author

admin

10 Responses to “ Read more… ”

  1. ကိုသႀကၤန္..
    ေက်းဇူးပါ..
    template.php မွာ ျပင္ၿပီးပါၿပီ
    Index.php မွာ ကို ရွာမေတြ႕ပါ။။

  2. အစ္ကိုေရ …တစ္ခ်ိဳ႕ Template ေတြက ဒီလိုေပၚတယ္ဗ် …

    အဲဒီလိုဆို ဘယ္လို လုပ္လို႔ ရမလဲ ….ကြ်န္ေတာ္လုပ္ၾကည္႔တာ မရဘူးၿဖစ္ေနတယ္ ….

  3. [CODE][/CODE]

  4. the_content(’Read the rest of this entry »

    လို ေပၚတယ္ဗ် ….

  5. ေက်းဇူး ကိုသႀကၤန္ႀကီး ေရ. မွ်ေ၀ေပးလို႔. :)

  6. ရသြားၿပီ အစ္ကိုေရ thank.

  7. I visiting your home. so good.

  8. I try change everything in the post-template.php what you recommend us but it’s not working:

  9. Wordpress 2.7 မွာ Themes ကိုဘယ္လိုေျပာင္းရမလဲ Themes upload လုပ္ၿပီးလဲ Manage Themes မွာဘာမွလာမျပဘူး က်ေတာလုပ္တာ (၂) ရက္ရွိၿပီနည္းေတြလည္းစံုသြားၿပီ ဘယ္လိုမွလုပ္လို ့မရလို ့ပါ အကူအညီေပးပါခင္ဗ်ာ။

  10. ကိုမ်ိဳးသန္႕
    WP2.7 မွာ Appearance ထဲက Themes မွာ ေျပာင္းေပးႏိုင္ပါတယ္။ အဲဒီအထဲမွာ တင္ထားတဲ့ themes ေတြ မေတြ႕ဘူးဆိုရင္ေတာ့ upload တင္တာမွန္မမွန္ ျပန္စစ္ၾကည့္ရပါမယ္။