- This topic has 30 replies, 3 voices, and was last updated 4 years ago by Tom.
-
AuthorPosts
-
March 12, 2020 at 6:18 am #1192768Patryk
Hey,
do you know a easy way to show (selected) blog posts on static frontpage? I would like to show them in the same style as in the categories.
Thanks a lot.March 12, 2020 at 6:21 am #1192770DavidStaffCustomer SupportMarch 12, 2020 at 6:31 am #1192780PatrykHi David,
thanks a lot.
Do you know how can i show the posts in the same style as in the categories?March 12, 2020 at 6:35 am #1192784PatrykIt works fine when i turn my frontpage to dynamic but i would like to have a static frontpage with more content.
March 12, 2020 at 6:54 am #1192960DavidStaffCustomer SupportYou can make a lot of the adjustments within the WP Show Posts list settings.
First you would want to change the Columns to 1.
Then adjust the image width to 300px and align it left.You can also enable post meta and read more button.
Won’t be an exact match, but will get you close enough and if need be we can help with a little CSS to finish it off.
March 12, 2020 at 6:59 am #1192962PatrykOk perfect David! Thanks!
March 12, 2020 at 7:04 am #1192966DavidStaffCustomer SupportGlad to be of help
March 13, 2020 at 12:03 am #1193487PatrykHi again,
now i use the WP Show Posts Plugin.
When replacing my categories with pages (that show my category posts), I used this script as instructed https://docs.wpshowposts.com/article/use-static-pages-as-category-archives/. However, my posts will redirect to the category page. Is this a bug? Is there a way to have it go to the proper post (and NOT to the category page)?Here is the post example: https://www.patientenwerk.de/hausarzt/hausarzt-wechseln/
There is a redirect to: https://www.patientenwerk.de/hausarzt/March 13, 2020 at 2:52 am #1193566PatrykCan anyone help me please?
March 13, 2020 at 3:36 am #1193596DavidStaffCustomer SupportThats odd – not seen this before.
Can you share the exact code you have added to the site ?March 13, 2020 at 3:51 am #1193606Patrykadd_filter('request', function( array $query_vars ) { if ( is_admin() ) { return $query_vars; } if ( isset( $query_vars['category_name'] ) ) { $pagename = $query_vars['category_name']; $query_vars = array( 'pagename' => "$pagename" ); } return $query_vars; } );
Here is someone describing the same:
https://wordpress.org/support/topic/using-wpsp-to-replace-categories/#post-12540308March 13, 2020 at 5:05 am #1193655DavidStaffCustomer SupportI have asked Tom to take a look.
Do you need to replace the Archives with Static pages ? Is it just a case of matching the WP Show Post and blog styles ?March 13, 2020 at 5:19 am #1193663PatrykThanks David for your help.
I need to replace the categories with static pages. Its not only a case of matching the styles. In addition, the static pages should give me more options to set up the category content.March 13, 2020 at 5:35 am #1193681DavidStaffCustomer SupportThats understandable.
Depending on the scope of your needs, you may find the Header and Hook Elements may give what you need:https://docs.generatepress.com/article/header-element-overview/
https://docs.generatepress.com/article/hooks-element-overview/
March 13, 2020 at 5:43 am #1193687PatrykOk, so there is actually no solution for the unwanted redirection?
-
AuthorPosts
- You must be logged in to reply to this topic.