phattrance
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Showing 5 posts on Index and 10 posts on page 2?That worked great!!
Thank you
Forum: Themes and Templates
In reply to: Showing 5 posts on Index and 10 posts on page 2?OK s? i found this code on the link that you send to me:
function hwl_home_pagesize( $query ) { if ( is_admin() || ! $query->is_main_query() ) return; if ( is_home() ) { // Display only 1 post for the original blog archive $query->set( 'posts_per_page', 3 ); return; } if ( is_post_type_archive( 'movie' ) ) { // Display 50 posts for a custom post type called 'movie' $query->set( 'posts_per_page', 50 ); return; } } add_action( 'pre_get_posts', 'hwl_home_pagesize', 1 );
With this code, The home page (and the page 2, pages 3 etc) gets 3 posts per page!
What will be code be if i want the home page (index) to have 3 posts, but the rest of the pages, like page 2, page 3 , page 4 etc to have 6 posts per page?
Forum: Themes and Templates
In reply to: Showing 5 posts on Index and 10 posts on page 2?hm i not that good with editing wordpress files (unless i have exact instructions)
are there any plugins for this that makes it easier?
Forum: Themes and Templates
In reply to: Showing 5 posts on Index and 10 posts on page 2?Hi Esmi
Its my own custom made theme. its for this page: https://gifsec.com/
Forum: Plugins
In reply to: [Really Simple Share] Pinterest doesnt show post thumbnail anymorewhiletrue —> is there any other way to manually place the buttons? cause using the following shortcut will make the pinit button to NOT display the post thumbnail ( Code: <?php echo really_simple_share_publish($link=”, $title=”); ?> )
But choosing the auto insert feature will make the post thumbnail to work…
please note that the problem is only on posts (single.php) and not index
Hope to hear from you soon!
Thanks
Forum: Fixing WordPress
In reply to: WordPress search shows only one pagejust an update:
i tried to change the prev and next button on wordpress and that didnt help either, so does anyone know what could be causing the but that doesnt allow users to view search page nr 2?
You can try it out for yourself here: https://gifsec.com/?s=happy&x=0&y=0
when you click on the next page to get to page 2, you will instead be redirected to https://gifsec.com/page/2 instead of the search term page 2.
Please help ??
Forum: Plugins
In reply to: [Really Simple Share] Pinterest doesnt show post thumbnail anymoreHi!
yes the option is NOT ticked in the pinterest button option
It works fine on index.php but when it comes to single.php it will not work.
i did some tests and it seems that it doesnt work on single.php posts when i have MANUALLY added the following code i got from you:
<?php echo really_simple_share_publish($link='', $title=''); ?>
but when i use the “auto insert” option on the plugin, it goes back to working normal. But i need to get the manual placement to work…
any ideas?
Here are two screenshots of index vs. single when i hover the mouse button on the pinterest button. as you can see, on single.php it doesnt get any url at all, and thats probably why im getting the popup with tons of screenshots to choose from
Index: https://imgur.com/91eFpoT
Single: https://imgur.com/TzRBdBcForum: Plugins
In reply to: [Really Simple Share] Pinterest doesnt show post thumbnail anymoreAny reply from the plugin dev?
Forum: Plugins
In reply to: [Really Simple Share] Pinterest doesnt show post thumbnail anymoreThats odd, cause im getting tons of thumbnails when i click on the pinit button. Heres a screenshot of how it looks like when someone clicks on the pin button: https://imgur.com/kxw4sYh
instead of showing a popup with the post featured image, it shows all the images that it can find….
i also noticed that when hovering the mouse button on the pin button it doesnt show the full link as it should..
Screenshot of how it looks like on https://gifsec.com/ ( NOT WORKING) : https://imgur.com/ewfgWNN
while heres how it looks like when i hover the mouse button on the pin it button on my other blog where the pins works: https://imgur.com/JIjdM3p
Forum: Plugins
In reply to: [Really Simple Share] Pinterest doesnt show post thumbnail anymoreanyone else having this problem?
as soon as i deactivate this plugin and installed another one, the pinterest button works fine
any idea on how to fix this?
Forum: Fixing WordPress
In reply to: WordPress search shows only one pagei have tried to change the next / previous buttons on the search page, but this doesnt seem to be working. as soon as i click on the “next or previous” button after ive done a search im getting back to “https://gifs-gif.com/page/2/” page instead of the second page of the search!
Any ideas on how i can fix this?
Thank you for you reply, i tested the code but it seems to only move one of the columns (the right one), while the other one on the left is still at the same place.
is there a way to move the left column a little bit to the left?
Once again, thank you for all the help!
The code im using:
<table> <tr> <td valign="top"></td><td valign="top" style="padding-right:50px;"> [insert_php] if(function_exists('tptn_show_pop_posts')) tptn_show_pop_posts(); [/insert_php] </td><td> </td><td valign="top"> [insert_php] if(function_exists('tptn_show_daily_pop_posts')) tptn_show_daily_pop_posts(); [/insert_php] </td> </tr> </table>
Thank you, ive checked that page but unfortunately i couldnt find any solution for this (im really bad at css) ??
Is there any simple way to get more space between these two lines / tables by just adding some code?
thank you, that worked.
i was wondering if its possible to get some space between those two lines. is that possible?
Oh my bad, do you know of any plugin that will?