Questions tagged [blog]

A blog (a contraction of the words web log) is a discussion or informational site published on the World Wide Web and consisting of discrete entries ("posts") typically displayed in reverse chronological order (the most recent post appears first).

Filter by
Sorted by
Tagged with
37
votes
9answers
107k 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.
8
votes
3answers
22k views

Can you have a blog in a subdirectory hosted on a different server?

I am interested in having a blog on my site which will be in a subdirectory of the main wordpress homepage e.g. website.com/blog however, I am interested to know if there is a way to host the blog ...
7
votes
2answers
7k 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 ...
6
votes
4answers
16k views

404 Error On Category and Tags Pages

Okay So I'm facing a weird problem as i'm receiving 404 errors on blog category and tag pages. I'm using custom theme which includes: tag.php category.php archive.php home.php index.php and 404....
5
votes
3answers
13k views

Disable WordPress' blogging functionality and disable 'posts'

I'm currently using WordPress for a website and it will simply be acting as a CMS rather than a blogging platform. This means that WordPress' 'posts' are not needed. Is there anyway of disabling them ...
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
3answers
2k views

How to embed page content in a blog post

I've built an HTML table that is posted on a page in my site, and I'd like to use that same content inside a blog post (something of an announcement of the table's publication). The table is likely to ...
3
votes
1answer
254 views

Why does get_the_time('F j') return November 30 for all posts?

Okay, so I'm making the blog page for my WordPress site. My front page is displayed as static, so my blog posts are on another page called "Journal." I want to display the posts in an archive-like ...
3
votes
1answer
8k 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-...
3
votes
1answer
1k views

Move WordPress from /blog folder to root but leave post at /blog

I am working on a WordPress blog for a client. Currently they have around 3,000 posts. The WordPress is installed at /blog/ I need to move the WordPress install to the Root directory but still have ...
3
votes
1answer
772 views

Prepend regular Posts with custom slug, without affecting Custom Post Types?

My company policy is to prepend "/blog/" to our Post slugs. Normally our SEO team will do this via the Custom Permalinks setting (/blog/%postname%), but this has the side effect of pre-pending /blog/ ...
3
votes
1answer
2k views

How do I convert a mathematical Microsoft Word document to a WordPress blog post?

I have a Microsoft Word document which I would like to convert to WordPress. The document is in Hebrew. It contains mathematical equations generated with MathType. It also contains images. Just ...
3
votes
2answers
2k views

widget should display post archive by year and on click also by month

I want to display the post archives like seen in this picture. Shown by year and on click it should open up the months. I am not sure how to approach this, would you customize the standard WordPress ...
3
votes
1answer
3k views

how to display full post with pagination on home page

I am using the 'Hatch' theme. I'm familiar with HTML/CSS but not with WordPress, first time working with this. I have my homepage showing recent posts and that's good. However, I want to make a ...
3
votes
0answers
55 views

Showing random content / pictures from earlier posts in a sticky post?

I have a sticky post on my wordpress blog, in the beginning. I would like to place some random content in it, by simply replacing some HTML in the post content. The random content would come from ...
3
votes
3answers
1k views

Wordpress 3.8.1 Multisite blog slug problem

Just installed Wordpress 3.8.1 multisite but can't remove the /blog/ slug. I've tried all suggestions for older versions of Wordpress (including the solutions to the question posted on this site 6 ...
2
votes
1answer
34 views

How to stop subdirectory wordpress install adding head elemets to entire site?

I am working on a static website, www.example.com and have installed wordpress in a subdirectory: www.example.com/blog. I have created a custom elemnt on the home page which pulls in the latest blog....
2
votes
1answer
2k views

is_singular() not working if called via callback function of admin-ajax.php

In my single.php I've some code like this ... if(is_singular('post')) { echo 'Blog'; } else { echo 'CPT'; } If I approach single.php from blog or CPT index page by using the_permalink(), this ...
2
votes
3answers
299 views

Blog not indexed [closed]

my blog is 6 months old, with frequently updated content. Yet, not a single page is indexed by Google. Why is that so? isn't wordpress set up for SEO by default?
2
votes
1answer
5k views

Could not load the preview image. Please reload the page and try again - error on image upload

i am getting this error "Could not load the preview image. Please reload the page and try again" whenever i upload any image on my Blog Site blog.knorish. I can see the thumbnail and image is loaded ...
2
votes
2answers
12k views

How to share same post to multiple site in wordpress?

We are developing WordPress with multiple site. We need to share some posts to more than one site. We need to save post in more than one sites with a single click. I have searched in Google, but I ...
2
votes
1answer
4k views

is_active_sidebar() Always Returns False

I've never gotten is_active_sidebar() to work, no matter if there's widgets in the sidebar or not I always get false returned. Currently I'm creating a sidebar for each top level page: http://...
2
votes
1answer
2k views

Custom URL for all posts in Wordpress

I have a wordpress site with static page as the front page. I want to have /blog to display the recent posts. How can I do that? thanks.
2
votes
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 ...
2
votes
2answers
100 views

Two Blog Layouts, Same Theme

Is it possible to have two different blog layouts in the same theme? They would pull the same posts, but have a different layout structure. The only idea I've had is making a couple custom page ...
2
votes
1answer
12k views

All pages showing up as homepage on Wordpress website

Why would this be happening? Every link I click on on my site results in the homepage again. You can check it out here: http://www.whatamidoingonline.com What is going on here? This just started all ...
2
votes
3answers
522 views

Side by side blog posts that are tied together

I'm looking for a way to have the screen split with side-by-side blog posts that are tied together. My client has her Grandather's travel dairies and wants to posts the entries. The originals are in ...
2
votes
3answers
9k views

Moving my current wordpress blog to a subdomain

I currently have a blog set up on my domain (eg domain.com), but I would like to move it and all of its contents to a subdomain (eg sub.domain.com). Is there anything I need to watch out for or modify?...
2
votes
2answers
1k views

How to change the blog title with add_filter? details below

i want to add a prefix to all the blog title by modifying the all ready applied filter . when i searched i got this: apply_filters( 'single_post_title', string $post_title, object $post ) what ...
2
votes
2answers
339 views

How to Redirect huge numbers of URLs to another URLs?

I am going to move from Blogger to WordPress and I also don't want to set earlier Blogger Permalink structure in WordPress. Now I want to know if there is any way to redirect URLs as mentioned below. ...
2
votes
1answer
548 views

Show first sentence of blog post in blog roll

Is there a known way to show the very first sentence of the content of a blog post? I know I can use the_excerpt(); but client has a strange requirement to show only the first sentence. If there is a ...
2
votes
2answers
9k views

How to show a full post, not just an excerpt

I have a blog page where blog posts have an excerpt on with a continue reading link below. When the link is clicked the full post should appear/or should be diverted to. This isn't that case. The ...
2
votes
2answers
552 views

Sitewide page on all the blogs in the network

I have WordPress multisite installed. And i need to make it so that a page called (Company Ideas) on the main blog is added to new blogs created on the network. So once someone registers a new blog. ...
2
votes
1answer
158 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
1answer
35 views

What should I do? A multisite, a single website or many websites? [closed]

I'm working on a big website project, we have some time allowed to redo the website first. Currently, it's a multisite with 2 working sites, one is the landing page and the main content, the other is ...
2
votes
1answer
41 views

Insert Latest Articles in Homepage

How can I insert the latest articles (blog) on top of the homepage? I intend with the release of the latest items with image and brief summary of the article. I made an example (in the attached ...
2
votes
1answer
994 views

Make Search Function include subdomain (blog.ourwebsite.com)

Wondering if there's a way to edit our search.php or .htaccess or function.php (or anything else...) so that our search function on our main site (www.oursite.com) includes the subdomain of blog....
2
votes
2answers
2k views

Home page not obeying post per page setting on the first page only

I am working on a custom template for my office. I have a static front page and a static home page to display the blog posts. I am having a few minor issues and will have to create a few other ...
1
vote
2answers
4k views

Get Content From Blog Page

I have a page that is assigned as the "Blog". What I'd like to allow is the user to add content to this page then display it before the posts show up on index.php. I thought I used to be able to do ...
1
vote
2answers
144 views

If newest post of category is newest post in general, skip first post of category

currently I am working on some customized blog templating and was wondering if there is any way to find out if the newest post of a category is also the newest post of the whole blog, so I can skip ...
1
vote
1answer
988 views

WP_Query doesn't get sticky post at the top, when used in a page template

I'm creating a theme in which I've created a page template called page_default-blog.php to be used for creating a blog page. In this file I have the following code: $paged = (get_query_var('page')) ? ...
1
vote
2answers
486 views

How to post twitter like updates on wordpress

Is there a plugin or a hack such that I can make short updates similar to twitter's on my own wordpress blog? Perhaps making use of a custom post type or something on those lines? What i'm trying to ...
1
vote
1answer
760 views

Custom excerpt length filter doesn't work

So I'm trying to change the standard post excerpt length. Every single blog post on the web tells me to do it with a filter like this: add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); ...
1
vote
1answer
58 views

How do I make the main page be the blog page and not a separate “home” page?

If you go to www.TwistedTalesOfTimmy.com you will be at the main page. It is a web comic strip with Comic Easel installed. You can get back to this page anytime you click the logo at the top. However,...
1
vote
1answer
312 views

Display sidebar if blog

I have two sidebars registered. One called Sidebar (sidebar-1) and the other called Blog Sidebar (sidebar-2). I would like to display the Blog sidebar on the blog index and single posts. As WordPress ...
1
vote
3answers
54 views

Installing WordPress only for a separate page - 'mydomain.com/blog'

So this may be a silly question but I already have my domain name and hosting. I have used it to set up my non-WordPress website complete with different pages and even an online library where you can ...
1
vote
1answer
948 views

A function to fetch blog content via rss feed

I am trying to make a function which take an rss fedd URL and fetches the most recent 2 posts. I have tried to remake the snippet from here to a full function in funtions.php as following. I don't ...
1
vote
1answer
76 views

wordpress blog in subdirectory or subdomain

I'm using Wordpress for my website. Now I'd like to add a blog section to my website. I'd like it to be accessible like this: http://www.mywebsite.com/blog or even better, as a subdomain: http://...
1
vote
1answer
632 views

Detect archive and category page

I would like to detect following pages: http://192.168.1.100/wordpress/?m=201311 - blog archive http://192.168.1.100/wordpress/?cat=1 - blog category For example, post type I can easly detect with: ...
1
vote
2answers
4k 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
2 3 4 5
8