Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
sunkast
tagDiv Member

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.

http://youtu.be/06Jp93-_Vb4

sunkast
tagDiv Member

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?

sunkast
tagDiv Member

Got it. Thanks Marius.

sunkast
tagDiv Member

Oh nevermind. I think I tracked down a plugin that was doing this. This post can be deleted.

sunkast
tagDiv Member

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.
sunkast
tagDiv Member

Nevermind, I found a piece of code to remove it. If anyone else is looking for this solution, here is the code.

remove_filter( 'the_content', 'sharing_display', 19 );

Just place it before the_content().

  • This reply was modified 12 years by sunkast.
  • This reply was modified 12 years by sunkast.
sunkast
tagDiv Member

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.

sunkast
tagDiv Member

That works. Thanks!

sunkast
tagDiv Member

Nevermind. I’ve taken a different approach. You can close this thread.

sunkast
tagDiv Member

Awesome. Thanks as always for your help Marius.

sunkast
tagDiv Member

I made a quick video of the issue. I’m using Chrome as my browser.

http://youtu.be/dsL4Fz-e69Y

sunkast
tagDiv Member

I figured it out. Thank you.

sunkast
tagDiv Member

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…

sunkast
tagDiv Member

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.

sunkast
tagDiv Member

Nevermind. I figured it out. I moved the new WP_Query code above get_header() and the title now has the right page count.

sunkast
tagDiv Member

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.

sunkast
tagDiv Member

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.

sunkast
tagDiv Member

My Custom Post Type has 16 entries that I am limiting to 10 per page. So that should use only 2 pages.

http://tinypic.com/r/4vih3n/5

http://tinypic.com/r/29usx0x/5

sunkast
tagDiv Member

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…

sunkast
tagDiv Member

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.

http://pastebin.com/Cd3WfS6g

Is there a way to fix the extra blank?

sunkast
tagDiv Member

Thank you matthewvb.

sunkast
tagDiv Member

@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?

sunkast
tagDiv Member

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?

  • This reply was modified 12 years by sunkast.
  • This reply was modified 12 years by sunkast.
  • This reply was modified 12 years by sunkast.
sunkast
tagDiv Member

Thanks!

Viewing 24 posts - 26 through 49 (of 49 total)