How to modify the output of the_content
-
Dear WordPress Guru,
I would like to modify the output of the_content, as I couldn’t find where to modify it.
I have:
<div class="storycontent"> <?php the_content(__('(more...)')); ?> </div>
and I checked that the html source output from browser is this:
<div class="storycontent"> <table style="height: 200px;" border="0" cellspacing="1" cellpadding="0" width="600"> <tbody> <tr> <td width="200"><strong><a href="../test1/">test1</a></strong></td> <td width="200"><strong><a href="../test2/">test2</a></strong></td> <td width="200"><strong><a href="../test3/">test3</a></strong></td> </tr> </tbody> </table> </div>
So now, I want to modify the table to insert a class=”link” and class=”tdataclass”, like below:
<table class="link" style="height: 200px;" border="0" cellspacing="1" cellpadding="0" width="600">
and also:
<td width="200" class="tdataclass">
Can you please tell where exactly I can make those changes to the PHP code ?
Many thanks.
cheers,
Sky
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to modify the output of the_content’ is closed to new replies.