Okay so I changed the slider from showing only 4 posts to 8 posts. And while yes I can slide left or right, it still does not show the other 3 posts in each slide group. It still only shows the very first post of each slide group.
Here is a video I made showing the problem. In the video when I slide, you are only seeing the first post of each slide group. I have the slide set to display 8 posts. Yet I am only able to slide through 2 posts.
Hey Chris,
Thanks for the heads up. Can I ask you a clarifying question? Would that be true regardless of the text of the title? For example, if the title was GoDaddy, or Shutterstock, rather than just the word Sponsor?
Got it. Thanks Marius.
Oh nevermind. I think I tracked down a plugin that was doing this. This post can be deleted.
First template: http://pastebin.com/6tB2Tk0h
Second template: http://pastebin.com/2nP9QCzn
Combined templates: http://pastebin.com/586fMZHM
Please also note that I am using shortcodes in the templates that are used by plugins I have installed. I also set my posts to the Video format. And I have modified the child theme CSS to add a top margin to P tags using this CSS code:
.format-video p {margin-top: 21px !important; padding-top:0 !important;}
From what I can see, when the second template gets adding, it removes the blank lines surrounding the text, and WordPress doesn’t format it automatically as a paragraph because of it.
-
This reply was modified 12 years by
sunkast.
There is, but it comes in the form of a plugin. If you don’t have the Social Counter plugin installed and activated, in your WordPress dashboard under Appearance, click on Install Plugins. I think it might be listed there.
That works. Thanks!
Nevermind. I’ve taken a different approach. You can close this thread.
Awesome. Thanks as always for your help Marius.
I made a quick video of the issue. I’m using Chrome as my browser.
I figured it out. Thank you.
Looking through the ajax php, I don’t think there’s anything in there to force my custom block to render 4 columns.
In my custom block, I had set $td_column_number in function inner to 4 to force the block to render 4 columns. But maybe this isn’t the correct way to do it? If I understand the ajax php file, it gets the column number from the block. But I’m not sure how to get my custom block set to 4 columns and also the ajax…
I’ve got the custom block and module working. But I’ve run into another issue. I’m displaying sub categories and using the Load More button to load posts using Ajax. Except that when ajax loads more posts it’s not displaying them in the 4 column layout I’ve programmed into the custom block and module. I assume there is another file I have to modify to output the correct ajax?
Also, by any chance, will the Teaser Grid component of Visual Composer ever be supported?
Thanks for all of your help.
Nevermind. I figured it out. I moved the new WP_Query code above get_header() and the title now has the right page count.
Okay so I got closer to a solution but still have a minor issue. I’ve changed $queryPost to $wp_query and that got rid of the extra blank page. However, the title of the page still is saying there is an extra page.
It says People | 2/3, but there is not a 3rd page.
I ended up changing function inner($posts, $td_column_number = '') to force using 4 columns.
On a side note, I think I remember reading a post about search being broken for media upload/ selection… Is that going to be fixed still?
Thank you.
My Custom Post Type has 16 entries that I am limiting to 10 per page. So that should use only 2 pages.
In the block, how would I tell it to do a 4 column layout? For example, I’ve started off copying Block 3, renaming it block 6 (and corresponding code), then added a case for 4 columns…
Okay so I’ve been able to figure out most of what I want to do without having to use Page Builder. The only issue I have is with pagination displaying an extra blank page. I’m guessing this might be due to the custom WP_Query I’m using to get posts to display from my CPT in the order that I want.
Is there a way to fix the extra blank?
Thank you matthewvb.
I’d be interested in learning more about your solution as I am also trying to create a custom template. Would you be able to share your solution and possibly the code you used?
Ahh Didn’t realize it was nested like that. Thank you. BTW, have you been able to look at my post about a custom archive template?
Thanks!
