Skip to main content
corrected spelling
Source Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459

LetLet’s say I have one post with tittle "Dummy one" and that post is filed under "Category one" and i have other post eg : "dummy two, dummy tree, etc" and category two, category three etc.

and now I create other post with title "helper for category one" how to display permalink to "helper for category one" in all post with "category one"

I want to put it under the_content(); in single.phpsingle.php.

letLet’s say my single.phpsingle.php is like this

if( have_post()):
while( blah blah ):
the_content();
endwhile;
endif;

i want to like this.

if():
while():
the_content();
if(category == "category one"):
display_helper_for_category_one
else:
display_nothink
endif;
endwhile;
endif;

How can I do that  ? if can How?

if any wrong grammar I'm sorry. i cant speak/write English well.

thanks for adv.

Let say I have one post with tittle "Dummy one" and that post is filed under "Category one" and i have other post eg : "dummy two, dummy tree, etc" and category two, category three etc.

and now I create other post with title "helper for category one" how to display permalink to "helper for category one" in all post with "category one"

I want to put it under the_content(); in single.php.

let say my single.php is like this

if( have_post()):
while( blah blah ):
the_content();
endwhile;
endif;

i want to like this.

if():
while():
the_content();
if(category == "category one"):
display_helper_for_category_one
else:
display_nothink
endif;
endwhile;
endif;

can I do that  ? if can How?

if any wrong grammar I'm sorry. i cant speak/write English well.

thanks for adv.

Let’s say I have one post with tittle "Dummy one" and that post is filed under "Category one" and i have other post eg : "dummy two, dummy tree, etc" and category two, category three etc.

and now I create other post with title "helper for category one" how to display permalink to "helper for category one" in all post with "category one"

I want to put it under the_content(); in single.php.

Let’s say my single.php is like this

if( have_post()):
while( blah blah ):
the_content();
endwhile;
endif;

i want to like this.

if():
while():
the_content();
if(category == "category one"):
display_helper_for_category_one
else:
display_nothink
endif;
endwhile;
endif;

How can I do that?

letLet say I have one post with tittle "Dummy one" and that post is filledfiled under "Category one" and i have other post eg : "dummy two, dummy tree, etc" and category two, category treethree etc.

and now I create other post with tittletitle "helper for category one" how to display permalink to "helper for category one" in all post with "cateogry "category one"

I want to put it under the_content(); in singelsingle.php.

let say my singelsingle.php is like this

if( have_post()):
while( blah blah ):
the_content();
endwhile;
endif;

i want to like this.

if():
while():
the_content();
if(category == "category one"):
display_helper_for_category_one
else:
display_nothink
endif;
endwhile;
endif;

can I do that ? if can How?

if any wrong grammergrammar I'm sorysorry. i cant speak/write englishEnglish well.

thanks for adv.

let say I have one post with tittle "Dummy one" and that post is filled under "Category one" and i have other post eg : "dummy two, dummy tree, etc" and category two, category tree etc.

and now I create other post with tittle "helper for category one" how to display permalink to "helper for category one" in all post with "cateogry one"

I want to put it under the_content(); in singel.php.

let say my singel.php is like this

if( have_post()):
while( blah blah ):
the_content();
endwhile;
endif;

i want to like this.

if():
while():
the_content();
if(category == "category one"):
display_helper_for_category_one
else:
display_nothink
endif;
endwhile;
endif;

can I do that ? if can How?

if any wrong grammer I'm sory. i cant speak/write english well.

thanks for adv.

Let say I have one post with tittle "Dummy one" and that post is filed under "Category one" and i have other post eg : "dummy two, dummy tree, etc" and category two, category three etc.

and now I create other post with title "helper for category one" how to display permalink to "helper for category one" in all post with "category one"

I want to put it under the_content(); in single.php.

let say my single.php is like this

if( have_post()):
while( blah blah ):
the_content();
endwhile;
endif;

i want to like this.

if():
while():
the_content();
if(category == "category one"):
display_helper_for_category_one
else:
display_nothink
endif;
endwhile;
endif;

can I do that ? if can How?

if any wrong grammar I'm sorry. i cant speak/write English well.

thanks for adv.

Source Link

How to display custom content in post with category XXX

let say I have one post with tittle "Dummy one" and that post is filled under "Category one" and i have other post eg : "dummy two, dummy tree, etc" and category two, category tree etc.

and now I create other post with tittle "helper for category one" how to display permalink to "helper for category one" in all post with "cateogry one"

I want to put it under the_content(); in singel.php.

let say my singel.php is like this

if( have_post()):
while( blah blah ):
the_content();
endwhile;
endif;

i want to like this.

if():
while():
the_content();
if(category == "category one"):
display_helper_for_category_one
else:
display_nothink
endif;
endwhile;
endif;

can I do that ? if can How?

if any wrong grammer I'm sory. i cant speak/write english well.

thanks for adv.