Questions tagged [blog-page]

The tag has no usage guidance.

30
votes
9answers
80k views

Check if current page is the Blog Page

I'm new to WordPress. I am looking for a way to check if current page is the blog page in the code of the header file. I've checked but I can't find a way. Help me, Pls.
0
votes
1answer
733 views

Link post to blog from a static page

I'm a WP rookie, and I just designed a static homepage that shows the 3 most recent posts in my database. I would like to redirect the user to another page in order to show him the entire blog post ...
1
vote
2answers
58 views

is_page(id) not working for blog page

I am trying to add a css file specific to 3 pages using the is_page(postid) for a WordPress website in the functions.php if (is_page(1) || is_page(2) || is_page(3) ) { echo "<script&...
0
votes
2answers
509 views

Customizing a blog page layout

I can't find any themes that truly match what I want, so I wanted to customize my blog page by adding to its existing layout given from the theme. However it seems that widgets and plugins that allow ...
0
votes
1answer
389 views

Limit the number of posts from a specific category on index.php

I've had multiple requests from different clients to figure out a way to modify their blog (index.php) or Custom Post Type Archive page in order to show less posts from a certain category. A good ...
2
votes
1answer
46 views

How to change the permalink structure of a master page?

Links on the page I use are progressing as follows: http://example.com/image/1 The code I use for Functions.php add_action( 'init', 'wpse316713_pagination_base_rewrite_rule' ); function ...
1
vote
5answers
32k views

Display content from a specific category

I'm trying to get my news page to display content from one category only (number 3) but I cant seem to get it to work. Instead of just displaying posts from category 3 it displays posts from all ...
0
votes
1answer
38 views

WordPress Iframe for blog image

I would like to have an Instagram feed for featured image of the blog. Already I have Instagram feed blog post but I would like it to be also on featured image. Any idea how to achieve this? Link ...
0
votes
1answer
21 views

Building articles grid

Would appreciate help. I'm trying to figure out how to build a menu page where there are pictures or photos with a summary with a link to a post or article. Like a grid or a similar shape. (Not using ...
6
votes
1answer
6k views

Show Default Editor on Blog Page ( Administration Panel )

In WordPress 4.2 it included a nice feature which labeled what page was the Front-Page and which page was the Blog ( Latest Posts ). Unfortunately, it also removes the default editor on the page ...
0
votes
0answers
22 views

How to use a PHP file to control the content of a blog post

Let's say I've created a page with the ID 62. If I then create a PHP file named page-62.php, I could edit my page from there. I want to do the same with a blog post. How would that be possible?
0
votes
1answer
471 views

Pulling sub-site content into specific pages

I'm working on a school website. The design calls for a collection of largely static pages, but for each class to have a blog which will be updated every few days. I know nothing about WordPress or ...
1
vote
3answers
479 views

How to display only the excerpt in the blog/posts page with Gutenberg?

I'm building a custom child theme using the Twenty Nineteen default WordPress theme as the parent. I added some text in the excerpt section available in the Editor as follows: But the full content ...
0
votes
2answers
177 views

How do I set up “blog” posts to a page other than the main/home page?

Someone set me up with some custom work on top od another them and now I want to add a "what's new"/"blog"/"latest news" type page that is accessible from the main menu and is NOT the home page. How ...
0
votes
2answers
14 views

Author picture not showing up on posts page

I am trying to have my profile picture appear next to my name when I upload posts to my blog post page. Instead, I am getting a default no photo icon. Could you further assist me in this?
0
votes
1answer
20 views

Link to a custom page without a permalink?

I am working on a custom Wordpress theme, I have the index.php setup for the Home view, I'd like to create another page to list all the blog posts, I am familiar with the loop, I just want to know how ...
2
votes
0answers
13 views

I am having trouble with article formatting when exporting/importing articles from the production to the development environments

Whenever I export a couple of articles from my production site to my development site, the imported one loses all its spacings (&nbsp elements). Has anyone ever encountered this? I use Wordpress ...
0
votes
2answers
29 views

WordPress blog posts template bug [closed]

I'm facing an issue I've never seen before. I fully copied a WP website to my localhost machine and everything was looking fine. When I was trying to make some changes on the blog page template (that ...
0
votes
1answer
1k views

blog page showing as home/landing page despite template change and reading settings

Live site. I'm having trouble pinpointing exactly why the Blog page is showing up as the Home/landing page. I've changed the page template to General/page.php and have WP reading settings set to ...
1
vote
1answer
948 views

Allow a static page to show on a dynamic home blog page before the posts

I am trying to figure out what is the best practice to allow a customizable static page to show on the top of the dynamic front home page. What I am asking is not using a custom page a such as front-...
1
vote
1answer
64 views

How to change the link structure of the homepage?

There are "your last posts" on the homepage. Under normal circumstances, the page proceeds as follows: http://example.com/page/1 http://example.com/page/2 e.t.c I want to change this link structure....
1
vote
1answer
35 views

Apply a style for 4 blogs and another style for the next 4 blogs in wordpress blog page?

I tried to customize my blog page. The first 4 blogs should be designed in one style while the next 4 blogs has a different style. When I applied the css, all the blogs were shown the same way. I was ...
2
votes
2answers
8k views

How can I have a static title on my blog page?

My blog page is not my homepage. How can I add a title to the top of the page? i.e. "My Blog". Right now there is no title on the page. The title of the first post is at the top. (Sorry it's on my ...
0
votes
1answer
95 views

Redirect Category pages to blog page with query string

Instead of using category listing templates for a site that I am working on, I am using ajax for filtering, searching, and listing all blog posts on the blog page. However, I need to add all the ...
0
votes
1answer
17 views

Blog post Links leading to home page [closed]

I have a Wordpress site with a paid theme but I seem to have a problem with the blog posts. When I create a blogpost, the blog post title and read more links appears in the blog menu item I have. But ...
0
votes
0answers
11 views

Removing catagory for new blog pages

I have three blog pages named 'blog' 'page_2' 'page_3' and four categories named 'cat1' 'cat2' 'cat3' 'cat4' in WordPress. Here 'blog' is the default blog page. Problem is when i submit a post it ...
2
votes
2answers
54 views

When using global $post in blog index file (home.php) it returns the latest blog post instead of current page

In my home.php file I have only this code: <?php global $post; print_r($post->ID); die(); ?> This is printing the ID of the latest blog post, but what I want is to get the ID of ...
1
vote
1answer
61 views

How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts

How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts: i have this code here: add_action( 'wp_head', 'set_featured_background',...
6
votes
3answers
41k views

Creating custom blog page template the right way

I want to create a new custom page template for the presentation of blog posts. I realise that when you assign a page to display posts via Settings > Reading, it then will assign home.php to display ...
2
votes
1answer
41 views

How to block access to blog-page for users not logged in?

My blogpage [is_home()] is located at /blog. My static page [is_frontpage()] is not the blogpage and located to /about-us. For users not logged in, the startpage is the static page. For users logged ...
0
votes
1answer
11 views

There is no link or button to my blog page

I have a blog page and Ive done a blog, but the only way other people can get to it is if they add /blog to the home page eg https://www.botanicalhome.com.au/pages/blog/ I dont want my home page to ...
-1
votes
2answers
27 views

In reading settings posts are set to “blog” and I have page-blog.php but no posts

I'm trying to achieve this: I have a static frontpage (defined in index.php) and want a section /blog that uses what I define in page-blog.php but using the built-in methods for looping posts etc. ...
2
votes
3answers
6k views

Exclude category on blog list page

I've got a site with a News page (archive for category 'news') and a separate Blog page. When I make a post for the News page I select the category 'news'. So, on the news page you only see the posts ...
0
votes
1answer
26 views

How do i remove Responsive navigation bar from from single blog post

How do i remove Responsive navigation bar from from single blog post. Can you help me css code that take this out from my landing page. Can you please check the link http://interecom.co/event/silom-...
0
votes
2answers
72 views

How to add add blank non-editable wp page like default blog for use with plugin

Wordpress has a default, for the most-part, non-editable place holder page for your blog. How can I recreate a similar page to this for use with my plugin? When accessing the page defined as blog ...
1
vote
1answer
1k views

How to display on the blog page the posts corresponding to the selected language, using Polylang

I use Polylang (free) to internationalize a customer site. I set a default language (= FR), I added a language switcher in my navbar (FR and US flags) and I set the Front and Blog pages for both ...
-2
votes
1answer
18 views

Blog page id different then in main menu

I am using ShiftNav (it is off canvas style menu, but on my blog page, it shows a blank page. I googled and found out the following the author ShiftNav isn't present at all on that page, which is ...
0
votes
1answer
20 views

Why does the blog page not take the page template selected?

I have a page template called post-list.php. This template lists all the posts that I have created with the title, date, author and an excerpt. Now, to list the posts I have created a page called ...
0
votes
1answer
21 views

Blog page is not showing properly

I am working on my site http://coregroupus.com/blog/ due to some problem my blog page is not displaying posts properly. Its showing the content of some other page in header, however all the posts are ...
0
votes
1answer
17 views

Is there a function to edit Blogs contents in Blogs page?

Can I edit blogs output content in blogs page? What is the correct way to do it? I assume there must be a filter function, the name of which I don't know.
0
votes
0answers
44 views

How to put the WordPress blog into theme

So, I am making my own theme, and I want to know if there is a way to put your WordPress blog into a page? P.S. My theme is set up with a "template" where it looks like this: <?php include("...
0
votes
1answer
17 views

Wordpress display page information rather than post

I'm new to WordPress and trying to turn a website into a WordPress theme. At the bottom of the index page (static page) there is an area for the two latest posts. I have created two dummy posts on the ...
0
votes
0answers
27 views

Allowing Comments on Posts

I'd like to allow users to write comments on my website's posts. I found this article (https://en.support.wordpress.com/enable-disable-comments-for-future-posts-pages/) so I went to Settings -> ...
1
vote
0answers
69 views

multiple blogs on single site

In my custom theme, I had to set one of the templates to home and then under Reading Settings set that to be the Posts Page. That allowed the site to read from the content of my home.php. And I ...
0
votes
2answers
135 views

Multiple blog “feeds” in a single blog each with distinctly styled post pages

So, I get how to easily create separate blog "feeds" in a single blog by using categories. While I can style the category feed pages differently, unfortunately they both just provide links to the same ...
0
votes
1answer
3k views

How to set a certain Custom Template to a Single Blog Post

I need to set a custom created template to be used whenever a single blog post is displayed. I can see how to assign custom templates to pages under Page Attributes > Template, but how do I tell my ...
0
votes
1answer
323 views

Site shows URL instead of “meta title” after deleted few plugins (not any SEO plugin was deleted)

www.Pifeed.net after i deleted some useless plugins due to load-time issues the blog pages show url instead of title tag, though meta title tag is there in source code.. thanks for answers
0
votes
2answers
734 views

How to query 'posts_per_page' to display a different blog posts index template?

Trying to create a 'switching' blog template using home.php, controlled by 'Blog posts per page' setting in the admin area. If set to '1', it will show the single post template. Anything higher and it ...
0
votes
1answer
61 views

Blog Post Title apearing twice

I can seem to find what is wrong. Here is the problem http://www.cookouvagia.com/blog/ Title of the latest recipe appears twice. Any advice would be great! Thank you in advance!
0
votes
1answer
37 views

How do I separate the post title from the content in an excerpt coded thus:

We're using a theme for a client that has programmed in their own excerpt & it's alright but it doesn't separate the title from the text in the excerpt itself, which is shown on the blog page. ...