-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display webcomic thumbnail/first image #325
Comments
Hey @misternek, that's great that you're doing a custom Webcomic theme! I'd love to see it when you're done. The documentation for <?php webcomic_media( 'full', null, [ 'length' => 1 ] ); ?> The first argument is the size of the media you want to display, the second is the post you want to display media for ( |
Hi @mgsisk! Unfortunately this code isn't fixing the problem. The archive page is still showing all of my gallery post's media: Here is my entire archive.php file if it helps. I also tried resetting the permalinks and renaming it to archive-webcomic1.php and got the same results.
|
Thanks @misternek; totally my fault. The <?php webcomic_media( 'full', null, [ 'offset' => 0, 'length' => 1 ] ); ?> The |
This worked perfectly, thank you @mgsisk! |
I'm trying to develop a custom Webcomic theme for my own website, and I'm at the point where I'm creating the archive.php page:
It's working fine until I make a webcomic post with more than one piece of media. When I do that it display all of the post's media on the page, when I only want one thumbnail image. I've tried the default Wordpress thumbnail tag and that doesn't return any images. I've also looked at the wiki but it's not entirely clear to me how to configure the tag to just show one image from the post.
Sorry if this sounds like a noob question, I only have the most basic knowledge of PHP.
The text was updated successfully, but these errors were encountered: