Keyword

Insert ad in k2 category list

  • caseyz
  • caseyz's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 2 days ago #168164 by caseyz
caseyz created the topic: Insert ad in k2 category list
Hello,
I am trying to insert an ad into a k2 category list after the 3 post. Similar to the problem on the stack link below. I am modifying the "category.php" overide but can't get it working. Anyone else ever try this?

stackoverflow.com/questions/43668403/how-to-insert-ads-within-list-post-category-in-wordpress

Please Log in or Create an account to join the conversation.

More
2 weeks 2 days ago #168168 by Krikor
Krikor replied the topic: Insert ad in k2 category list
Hello, Can you share a link and your code?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

  • caseyz
  • caseyz's Avatar Topic Author
  • Offline
  • New Member
More
2 weeks 1 day ago - 2 weeks 1 day ago #168180 by caseyz
caseyz replied the topic: Insert ad in k2 category list
I am not well versed in php so I've tried several sources (see below)

currently I only get the div to display, but not in the correct position. Right now it just shows before the item.container div of the first primary section.
<?php $count = 0; ?>

          <?php $count++; // Increment counter
          if ($count == 4){ ?>
            //Div.block
          <?php } ?>

wordpress.stackexchange.com/questions/196149/how-to-add-div-blocks-after-certain-set-of-post
stackoverflow.com/questions/35103066/display-html-div-after-nth-post-within-wordpress-loop
Last Edit: 2 weeks 1 day ago by caseyz.

Please Log in or Create an account to join the conversation.

More
2 weeks 1 day ago #168186 by Krikor
Krikor replied the topic: Insert ad in k2 category list
How many items are you loading and also, can you send me a link to your site?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

Moderators: william white