Skip to content

Commit

Permalink
Use description from the CBDQ entry when listing CBDQ bots.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Aug 17, 2020
1 parent 08c081d commit 9e0e524
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ function tag_links( $tag ){
</div>
<div class="col-sm-12 col-md-8">
<h2 id="monthly-bot-challenge">Cheap Bots, Done Quick!</h2>
<p>An open-source website that lets you create Twitter bots using a text-generating language called Tracery.</p>
<?php
$cbdq_description = apply_filters( 'the_content', get_post_field( 'post_content', 8220 ) );
echo substr_replace( $cbdq_description, '', strpos( $cbdq_description, '<ul' ), strpos( $cbdq_description, '/ul>' ) -strpos( $cbdq_description, '<ul' ) + 4);
?>
<ul class="btn-list">
<li>
<a class="btn" href="https://cheapbotsdonequick.com/">Visit site</a>
Expand Down

0 comments on commit 9e0e524

Please sign in to comment.