Jonnie Grieve Digital Media: Blog

Home
by on 28th January, 2021 - 4:50pm (0)

Blog: R6D51: #100DaysOfCode (More Posts)

Back I went to the blog enhancements, to begin with. I turned to the question, how can I show only the relevant posted comments in the comments section that relates to the particular blog post being viewed. because right now I’m seeing comments on all blog posts no matter what post I’m on.

Right now the comments template correctly identifies the number of comments that have been posted to an article but not the comments themselves.  As I write this there are 2 comments both to a single post and those comments appear in the comment section for all articles.

I tried a number of searches but could find nothing that seemed to match what I wanted to do.

Fine. I’ll move onto another problem because right now I’m not getting much done.

Pagination.

Another killer problem that should be so simple but for which there seems to be no simple solution. The default pagination methods that WordPress provides give me nothing.  The nearest I got to progress was modifying the code to display a group, 1 group of blog post titles at a single time based on the integer attribute typed in… but with still no pagination links.

Fine. I’ll move onto another problem because right now I’m not getting much done.  But setting up pagination has become more of a matter of urgency with the growing number of posts in my blog.

For now, I’ve set the number of posts per page to 10 by default. All the posts I’ve written to this blog so far are available via the post archives found in the footer of this website.
https://wordpress.stackexchange.com/questions/254199/pagination-when-using-wp-query

Projects Website

Finally, I did a bit more design work on my projects subdomain website.

 

You can see here the hover effect I'm building that represents a project

You can see here the hover effect I’m building that represents a project

 

This thankfully seems to have been a bit more productive. I spent more time than I care to admit trying to juggle the black background and the containing text within the confines of the image on multiple screens but I think I’ve managed it in the end. I’d like to try and finish this design work so I can get started on converting it to WordPress, which again will be the most exciting part of this redesign.

This post has been assigned to the following categories

    Leave a Reply

    Your email address will not be published. Required fields are marked *