Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [blog-page]

The tag has no usage guidance.

30
votes
9answers
77k views

Check if current page is the Blog Page

I'm new to Wordpress. I need to check in header file if current page is the Blog Page? I checked but I can't find the way. Help me, Pls.
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 ...
5
votes
3answers
37k 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 ...
4
votes
1answer
3k views

I put my blog on a subpage, how do I get page title?

I've got my blog setup on a subpage (not the front page) and I'm using the template file home.php, how can I get the contents from the page editor onto this subpage? If I change the title of the page ...
4
votes
2answers
6k views

ID for posts/blogs page

I have a website which has a static front page and a blog page where all the blogs are displayed. I am using my own theme and have created some custom meta boxes that display content in a sidebar ...
3
votes
1answer
302 views

Blog.php or how to display recent posts?

I created a home.php which doesn't display the recent posts in the standard-blog-style. Just have a look at my website to see what I mean. I want to create a link that leads to something like "http://....
2
votes
3answers
4k views

Why aren't my posts showing?

I'm creating a theme for my portfolio site. After a some time of trial and error research and almostss, I'm stuck. It's going to be very minimal site in content, therefore I decided to create a one ...
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 ...
2
votes
3answers
6k views

Non existing blog pages are not redirected to 404

I've got a page called Blog. In the Settings -> Reading I've set my Blog page as Posts page. In the menu when I click on the Blog link the posts are loaded correctly and pagination works, so far so ...
2
votes
1answer
5k views

What is archive.php used for?

Dumb Questions Ahead: If index.php and archive.php are practically the same thing, what's the point of having archive.php? When should I ever want to use archive.php over index.php? If I use front-...
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 ...
2
votes
2answers
52 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 ...
2
votes
1answer
79 views

Automatically adding post and pages to new blog setups

I'm using the ThreeWP Broadcast plugin to add and control post and pages from the main blog to all my sub-blogs in the network. Is there anyway i can automatically add all of my post and pages from my ...
2
votes
1answer
41 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 ...
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 ...
2
votes
2answers
3k views

Setting a static home page and blog page without using the settings

This may seem like a stupid question, and it probably isn't possible, but is it possible for me to set a static home page (using front-page.php) and a blog page (using home.php, I think) in my theme, ...
2
votes
0answers
103 views

Sitewide categories for all the blogs in the network [duplicate]

Possible Duplicate: WordPress Multisite - global categories I'm trying to do sitewide categories. like when a category is made in the main blog that category is added to all the new blogs created ...
2
votes
1answer
39 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 ...
1
vote
5answers
29k 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 ...
1
vote
3answers
3k views

How to get the list of posts in a static page other than front page?

So, for the thousands using WP as CMS, a typical approach is that of using the 'A Static Page' option from the Settings > Reading admin page. However, I'm in a different scenario: our front page is ...
1
vote
2answers
3k views

index.php template is used instead of blog page

I am trying to set WordPress so that home page is static, and the blog page is a separate page. So, I created two page templates in my theme., lets call them home_template and blog_template. Then, I ...
1
vote
1answer
896 views

Multiple Blogs on one site. Best Practise

I've been tasked with adding a blog to an already up and running client site. The site uses wordpress as it's CMS already. So a blog install should be a relatively simply task and simply a matter of ...
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 ...
1
vote
1answer
101 views

How to create Blog Post Specific Widget

I want to create widgets which will display based on post. I have considered the option of creating a widget post type using Advanced custom post type plugin and populate this widget while writing ...
1
vote
1answer
683 views

Create a front page template and separate page for posts?

I'm building a WordPress theme. I need two type of pages, one is home page which will display on www.example.com. I also need a list of all my posts on www.example.com/blog/, but I need both in one ...
1
vote
1answer
605 views

home.php not loading

I have an issue where home.php won't load, so wordpress insists of using index.php to display blog posts. I created home.php by copying the entire content of index.php into home.php. Is there a way to ...
1
vote
1answer
5k views

How to display blog posts on a dedicated page?

I'm in the middle of moving to WordPress from another CMS. I definitely have to keep the links intact, which are like this: example.com (Redirects to /blog) example.com/blog (The blog, displaying all ...
1
vote
1answer
63 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
930 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
32 views

Is the “Posts page” really required? Can problems occur if I leave it blank?

I read some scary comments here. (By Blog page, he means the Posts page in the reading settings.) The Blog Page gives out several indicators to social sites and Search Engines that it's a Blog. [......
1
vote
1answer
909 views

Custom Theme Blog page not showing Posts

I am developing my custom theme in WordPress from scratch. Now when i am working with my blogs page its not showing any of the posts i have changed my "index.php" page but i think there must be some ...
1
vote
2answers
119 views

Show the page title on blog page

I created a page for my posts, and a home.php for the structure. I would like to show the page's name on the top of the posts, but the result is always the latest post. My code: <?php get_header(...
1
vote
3answers
93 views

Do I need an empty page for a different blog page?

Okay, let's say I have a website with the following navigation: HOME - ABOUT - PRODUCT - NEWS - CONTACT The 'about' and 'contact' page are just simple pages of course. The 'product' page is just an ...
1
vote
2answers
305 views

Can I install/embed Wordpress on a 'single page'?

I'm building a website from scratch (PHP, jQuery) and want to have full control over the design, implementation, etc. I want to install Wordpress so that when you go to a certain section of the site, ...
1
vote
1answer
1k views

Creating a new blog using PHP

I have a Multisite where I'm creating a user from a PHP file, using the code below: define('WP_USE_THEMES', false); require_once (dirname (dirname (__FILE__)) . '/mygroup/wp-blog-header.php'); ...
1
vote
3answers
250 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 ...
1
vote
1answer
34 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 ...
1
vote
1answer
60 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',...
1
vote
0answers
309 views

Blog page Server error 500 with stick post loop in query.php

Using sticky post on site near about 5000 sticky post i have. In wp-includes/query.php here i have bellow snippet code.on line 3748 to 3760.If i comment this code the blog page work properly. if ...
1
vote
0answers
67 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 ...
1
vote
1answer
113 views

Problem with Comment link in Blog [closed]

I have all the settings setup to allow comments on my Blog postings. However, when you click on the link to post a comment nothing happens. Attached is my comments.php file Also the site is www.djjigs....
1
vote
2answers
262 views

Wordpress Blog - Grid View

by default Wordpress shows blog posts one beneath the other showing short text and, if available, an image. The question is - is it possible to change that? I would like to have a grid consisting of 3 ...
0
votes
6answers
128 views

Blog page problems

Right, please excuse the stupid question. On my new blog I want the home page to be the "home" page I've created, and not the list of articles... that's fine, I go to Settings -> Reading -> ...
0
votes
2answers
4k views

Custom fields won't display on my blog page

I created a custom field called 'Page Description' which I use to create a custom title for each static page of my wordpress site. I use the code: <?php echo get_post_meta(get_the_ID(),'Page ...
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 ...
0
votes
1answer
130 views

Adding code to head to all pages manually

I've been googling for days and I didn't find a solution. I need to add a JS code to the head of all my pages, and I wanna do that manually (without a plugin). I found a '~/wp-content/themes//header....
0
votes
1answer
45 views

Automatic blog page with custom design [closed]

For my website, I would like to make a new section that looks like this: [] = a row {} = a column [{Image of post} {text of post}] [{text of post} {image of post}] [{Image of post} {text of ...
0
votes
1answer
16 views

Best way to change the blog page post type?

what is the best way to change the wordpress blog page post type. by default it fetches the posts with post type is equal to posts but how we can change to to lets say posts type is equal to blog. ...
0
votes
1answer
6k views

Changing next and previous post link text

So I've been staring at the CodeX for about 10 minutes and can still not figure how to do this next and previous on a the post page. So I've added <?php next_post_link(); ?> and <?php ...
0
votes
1answer
27 views

wordpress blog posts's time

I want to show the blog posts'time like below: "A heading title , posted by XYZ, 1 hour ago" I want the time that says: 5 minutes ago, 1 hour ago, 2 days ago 1 month ago like that. how can i get ...