- Posts: 18
COMMUNITY FORUM
Insert ad in k2 category list
- caseyz
- Topic Author
- Offline
- New Member
Less
More
6 years 5 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
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 5 months ago #168168
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 18
6 years 5 months ago - 6 years 5 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.
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
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: 6 years 5 months ago by caseyz.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 5 months ago #168186
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.