Keyword

Insert ad in k2 category list

  • caseyz
  • caseyz's Avatar Topic Author
  • Offline
  • New Member
More
5 years 9 months ago #168164 by caseyz
Insert ad in k2 category list was created by caseyz
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.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 9 months ago #168168 by Krikor Boghossian
Replied by Krikor Boghossian on topic Insert ad in k2 category list
Hello, Can you share a link and your code?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • caseyz
  • caseyz's Avatar Topic Author
  • Offline
  • New Member
More
5 years 9 months ago - 5 years 9 months ago #168180 by caseyz
Replied by caseyz on 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: 5 years 9 months ago by caseyz.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 9 months ago #168186 by Krikor Boghossian
Replied by Krikor Boghossian on topic Insert ad in k2 category list
How many items are you loading and also, can you send me a link to your site?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum