GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wp theme building question (https://gfy.com/showthread.php?t=1024539)

AtlantisCash 05-29-2011 10:50 AM

Wp theme building question
 
hi.

i want my themes showing title links on home page, but not the content, i mean like we were doing for html sites before (Better to say tgps, cjs etc are still the same).

Simply, a user need to click that link to be able to reach the content.

so is it possible to do it this way?

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

<div class="post" id="post-<?php the_ID(); ?>">

Thanks.

JD 05-29-2011 11:02 AM

so you want just a list of titles?

-- loop begin --
<a href="<? the_permalink();?>" target="_self" title="<? the_title();?>"><? the_title();?></a> - <? the_time('F dS Y');?>
-- loop end --

AtlantisCash 05-29-2011 11:06 AM

Quote:

Originally Posted by JD (Post 18175342)
so you want just a list of titles?

-- loop begin --
<a href="<? the_permalink();?>" target="_self" title="<? the_title();?>"><? the_title();?></a> - <? the_time('F dS Y');?>
-- loop end --


So the titles will be clickable links to posts i guess?

CurrentlySober 05-29-2011 11:12 AM

Follow THIS tutorial....

It may not work.. But I DO LIKE IT...

fris 05-29-2011 12:45 PM

Quote:

Originally Posted by AtlantisCash (Post 18175350)
So the titles will be clickable links to posts i guess?

in single.php which is the post page dont do the <a href

just do <?php the_title();?>

AtlantisCash 05-29-2011 01:16 PM

Quote:

Originally Posted by fris (Post 18175537)
in single.php which is the post page dont do the <a href

just do <?php the_title();?>


Yea but it won't make titles with links if if i do like You said, m i wrong???

fris 05-29-2011 08:19 PM

Quote:

Originally Posted by AtlantisCash (Post 18175578)
Yea but it won't make titles with links if if i do like You said, m i wrong???

no it wont make it links, it will just print out the title


All times are GMT -7. The time now is 12:25 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123