WordPress Multisite Strange Redirect on Primary Site
WordPress Multisite Strange Redirect on Primary Site
WordPress Multisite Strange Redirect on Primary Site
If you’ve already got a solution that works using FeedPress you might as well stay with that, there isn’t a particularly clean way of aggregating multisite posts into a single blog. One alternative is to use the Sitewide Tags plugin, but given what you want to do, you should probably stay with what’s working.
For example: I’m a Hungarian user, but my IP shows I’m in Germany while I use an English browser. The most convenient would be English for me, because that is my choice. There’s a PHP superglobal variable, called $_SERVER. It stores information about the server running the page and about the client who requested the …
Seems I fixed it myself, I had to call <?php global $withcomments; $withcomments = 1; comments_template(‘/comments.php’, true); ?> as I am filtering comments by type: <?php wp_list_comments(‘type=comment&callback=jennygg_comment’); ?>
Edit: Wow. I mistyped a bunch the first time around. Hopefully nobody read that. All corrected now. /edit I went code spelunking… 🙂 Short version, the workaround would be this: <?php $front_page_id = get_option( ‘page_on_front’ ); $my_permalink = _get_page_link( $front_page_id ); ?> If you look into link-template.php in the WordPress core, you can kind of …
Try checking your settings under Settings > General. Is your Site Address (URL) set to http://dev.domain.com? The next place I would look would be Settings > Permalinks.
First, you need to familiarize yourself with the WordPress Template Hierarchy, so that you ensure that you are modifying the appropriate template file: Home: Blog Posts Index page; template file: home.php Front Page: Site Front Page; template file: front-page.php I am assuming that you want to display a static front page, and to display your …
Add a filter to frontpage_template and check the paged query var, adding your own template when it’s beyond the first page. I use paged.php in this example: function wpa56889_template_filter( $templates=”” ){ $paged = get_query_var( ‘paged’ ); if( $paged > 1 ) : if( !is_array( $templates ) && !empty( $templates ) ) : $templates = locate_template( …
When every message is hard coded in the theme files there can be no problem with gettext anymore. So, yes, depending on the theme WordPress can use different templates for home and other pages. But no, this has nothing to do with automatic translations. You have simply forgot to translate some strings, possibly in front-page.php …
I’m not sure how plugin hooks would impact in any way the solution to your problem. The home.php template file gets included at the template_redirect action, which fires well-before wp_head. That said, what it sounds like you want to do is: Have ‘posts_per_page’ = 1 on the first page of the blog posts index Have …