juicyjuke
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: adding Pagination to a shortcodeWhat is your concept here? The comment above your code says this shortcode is for the home page. When you say “paginate”, we are really just reloading the same home page, except different posts are displayed, “page” by “page”, but always on the home page. Am I correct?
Yes. example http://www.mypage.com/page/2 , http://www.mypage.com/page/3 etc
Anytime you have a custom query that needs to be paged through, you cannot rely on WP pagination functions. They work based on the main query, in this case the home page. It doesn’t even make sense to paginate a home page. The main query is for one page, there’s nothing to paginate through the main query.
Yes I totally understand it doesn’t make sense. The way my site is gonna be set up..i need my home page to have pagination of all posts from 4 different categories. Id also like to switch it up in the future where other pages will use the same short code.
thanks for a push in the right direction. however im afraid im confused on how to go about implementing what you just told me. haha. I wouldn’t no where to start making a shortcode to display posts and be paginated at the same time. lol
Forum: Developing with WordPress
In reply to: CSS not responding well with Shortcodehey BCworkz,
Sorry for the late response.
I figured it out on my own shortly after I posted this.overlaid. that’s the word im looking for.
I simply put get_the_title function in its own string, and it worked just fine.
originally I had
if ( has_post_thumbnail() ) { $string .= '<li>'; $string .= '<a href="' . get_the_permalink() .'" rel="bookmark">' . get_the_post_thumbnail($post_id, array( 500, 500) ) . get_the_title() . '</a></li>';now…
if ( has_post_thumbnail() ) { $string .= '<a href="' . get_the_permalink() .'" rel="bookmark">' . get_the_title() . '</a></li>'; $string .= '<li>';$string .= '<a href="' . get_the_permalink() .'" rel="bookmark">' . get_the_post_thumbnail($post_id, array( 500, 500) ) . '</a></li>';🙂 now its treated as its on entity. im still way much a noob, but im getting there.
looking at what I did… would you have done the same? also is there anything wrong with the way I did it?
also there is nothing live yet. im doing this all locally.
- This reply was modified 9 years, 1 month ago by juicyjuke.
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateI have solved the issue. Thank you for the all the help. It was needed
The_category function calls get-the_category_list and so on .
So this css helped
‘ .post-categories li a {font-family:Myfont;} ‘
- This reply was modified 9 years, 2 months ago by juicyjuke.
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateYa i get it. Didn’t mean to pump. I accidentally responded in this post instead of the previous. I assumed this was deleted and it was cached into my browser.
i was making convo is all with the noob thing. No harm intended. Sorry
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateHey don’t mean to keep bugging. This is a really frustrating problem for me.
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateOk np. I didn’t see the topic on the forms less than I thought it might’ve gotten lost since there was no reply just having such difficulties. Sorry I will keep that in mind
- This reply was modified 9 years, 2 months ago by juicyjuke.
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateMy other option here is to just edit h2 tags in custom CSS. I’m guess I’ll just have to stick to that route until I can figure out what the hell is happening . Lol
But that only works for Posts displayed. Not the title of the category. If I switch the sprintf to the_category instead of the_title that won’t help either
- This reply was modified 9 years, 2 months ago by juicyjuke.
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateTrying everything here for what you said. Still isn’t working. Not quite sure how to go about this. Any more info you might need ?
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateoh yeah and that didn’t work. lol just tried it.
this is what I mean. about ot rip my hair out of my head
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateone more thing. how can I make that global to effect all pages?
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateI should try that before I asked. that was my next step. its the simplest things I find myself having the most trouble with. too focused on complicated things bypassing basics.
thanks steve. hey not for nothing. you seem to be the only one that responds to my posts around here. People don’t want to deal with noobs or what?
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific template<body class="home page-template-default page page-id-2 logged-in admin-bar no-customize-support custom-background wp-custom-logo Juicyjuice-class my_class">here it is.
for some reason I cant comprehend what you said.how do I apply this to
this?
.template_class h2.entry-title { font-family: somefont; }I get I can replace somefont to whatever font. ami suppose to replace
.template_classwith ??Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateok I was able to get it by simply adding the font face html code around the get_category function like
<font face="impact"><?php the_category(); ?></font>is that a good way of doing it steve? anything wrong with that way?
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templateok I was able to change the fonts for Post entry title in the arguments by simply
adding
<?php the_title( sprintf('<font face="impact"><h2 class="entry-title"><a href="%s">', esc_url( get_permalink() ) ),'</a></h2></font>' ); ?>however it didn’t work one bit for cat entry titles haha
Forum: Developing with WordPress
In reply to: Difficulty editing font type for a specific templatewhat about arguments in this function? that possible?
<?php the_category(); ?>