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
1
vote
1answer
256 views

Different post styles depending on category

I am using Zephyr theme The link to the blog page. I want to style each post differently based on the post category ex: social media, announcements ect. I would like to style them using a cards ...
2
votes
2answers
98 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 ...
0
votes
1answer
130 views

Wordpress blog assign unqiue body class

I am using a function to change the body class depending on whether the user is on the home or sub page. Currently everything is working as it should, the homepage is showing the home background and ...
2
votes
1answer
497 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
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 ...
1
vote
2answers
59 views

Where is Number of Posts Set?

I'm hoping someone can help me with this seemingly simple problem. This is a custom theme that I've been given, and simply changing the number of displayed posts in the Settings menu is ineffective(...
0
votes
2answers
658 views

Inserting ads within content

I want to show adsense ads below the 4th and 20th paragraph of every blog post, ONLY if there is a 20th paragraph. I managed to insert an ad below the 4th ad by placing the following code in my ...
1
vote
0answers
42 views

Trouble Migrating all data blog from Wordpress.com to Wordpress.org

I'm transferring a WordPress.com blog to a new WordPress.org website but I'm having trouble transferring everything. I've gone through the usual WordPress tools - export XML file, import using the ...
1
vote
1answer
28 views

Blog Posts in Custom Menu

I have a custom menu but would like to put specific posts on each one. for example: my menu consists of: cooking, beauty and style. How can i put all cooking posts on the cooking tab, and all beauty ...
1
vote
1answer
33 views

How do I add a checkmark to my-sites save settings hook

I want to add a checkmark to the my-sites.php through a hook and then press save settings and have it do a function that executes a SQL query. I've added the checkmark but I don't know how to go ...
1
vote
1answer
86 views

Change Read More in Child theme

Im like 99% done with my multisite. The only thing left to do is to change the read more link on the child theme. But I can't get it done. Main site (Dutch): www.jeroenbrugman.com 2nd site(english): ...
1
vote
1answer
74 views

Menu / div of year and months of blog posts?

I want a menu or a dive with this content where you can click on and see the blog posts from the selected date that is like this BLOG -2014 -january -february -march -.... -2013 ...
1
vote
1answer
22 views

Deleting a blog

I have a WordPress blog that I forget about. I created it in 2007. I would like to delete it, but the email address I used to set it up is super old—i de-activated the account back in maybe 2008 or ...
1
vote
0answers
57 views

Strange 403 header response

I am receiving a strange 403 header response on the blog part of one of my sites. The site is accessible in the browser and works perfectly but googlebot, Moz and other checkers return a redirect from ...
1
vote
0answers
60 views

404 when going to /blog

I'm trying to merge an old wordpress blog with a new wordpress site. Effectively all I want is to bring across the posts and link off to them from a link in the navigation called "blog".... simple ...
0
votes
0answers
31 views

How to change the layout of blog posts to that a compressed snippet shows rather than full text

I'm new to Wordpress, started a blog, and can't figure out how to get the blog entries to display in a cutoff/compressed manner with the title and beginning text only. The default seems to be showing ...
1
vote
3answers
51 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 ...
0
votes
1answer
54 views

Can I create mini-WordPresses on my WordPress?

... or what is the best way to do this? I want to use my WordPress blog and create blogs for a few people on it. So they would create posts and it would post to their own "website" like mysite.com/...
0
votes
2answers
110 views

wp_enqueue_style and different styles for blog template

I have a front-page.php to create the index page template and a page-blog.php to create the blog template. My styles are added using wp_enqueue_style in my functions.php, but I'd like to use different ...
0
votes
2answers
51 views

Is there a way to multiply archive loop results sequentially?

I am trying to make my own version of this I've implemented bootstrap grid in my attempt. I'm very close, but the <div class="row"> being looped is causing problems. I want to just be able to ...
0
votes
1answer
28 views

How to create library of HTML snippets to use in posts

I have a requirement to allow our WordPress blog authors to be able to run a specific HTML advert at the bottom of each blog article from a choice of several pre-created HTML adverts. Once the post ...
0
votes
3answers
370 views

Adding a trinket.io widget to a post

I'm trying to add a trinket.io widget to my blog post in order to do some interactive things but I'm not having any success. If i try to just use the embed code given to me by the trinket.io page: &...
0
votes
1answer
51 views

Edit Posts Page but not category specific pages?

Is there a way to edit the page that shows all your posts? But not affect the specific categorized pages? I have been trying, and cannot seem to find a solution.
1
vote
1answer
46 views

How to disable Wordpress blog folder

I've integrated Wordpress into my existing website and used WP JSON API to get the content from WordPress, but I don't want the WordPress itself to be available to my viewers. When I refresh my ...
0
votes
1answer
22 views

I am getting “0” in the starting of my post description at home page

See here at home page with all posts I am getting "0" in starting.
0
votes
1answer
23 views

Adding a WordPress Blog to a current WordPress site

I currently have a WordPress website, though it's just a normal page with no need for constant updates or posts on it. What is the easiest way to add a WordPress blog to my website? Thanks
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 ...
3
votes
1answer
248 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 ...
1
vote
1answer
1k views

Where in PHP do I move title and meta (date) to bottom of each blog section?

I'm working on a Divi site that has two blog grids on the home page. I need to move the title and the date of each blog section to the bottom (below the blog text). <div class="...
0
votes
1answer
27 views

Automatization for automatization

I have a wordpress multisite for a bunch of friends of mine. And every time I create a new blog there are a few things I have to do before I can give it to them. Activate a new plugin Create a new ...
1
vote
1answer
832 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')) ? ...
0
votes
1answer
3k views

Display subcategories in dropdown

I have the following code on my website: <div class="blog-cats drop"> <label class="custom-select"> <select class="styledSelect1" name="archive-dropdown" onChange='document.location....
1
vote
0answers
400 views

Loading index.php contents which located outside blog folder for post single page

I'm creating blog page as WordPress for my static PHP website. When blog page URL changes to pretty permalink (example.com/blog/my-post-page), loading contents (not redirecting to index.php, only ...
0
votes
1answer
141 views

Wordpress Plugin manipulate have_posts()

I want to develop a plugin, which changes the post order on the blog page, I think I need to manipulate the have_posts() function. How can I do this?
0
votes
1answer
49 views

Blog styling in SASS

Every so often I get a request like this: "Build a site using WordPress as the CMS [easy...]. Oh and we'll have a standard looking blog thrown in. No need to worry about styling, the default look ...
1
vote
1answer
842 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 ...
0
votes
2answers
349 views

Exclude post category in a blog page

I have two links in "news" where all the news posts goes "blog" where the rest goes just wanted to exclude the category "news" in the blog page I use the code $news = new WP_query ('...
0
votes
1answer
854 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
1answer
44 views

How could I change my Permalink from blog to custom structure? [closed]

When I install multi wordpress site I have a problem that my default site permalink goes to http://site.myurl.com/blog/post-name/ I want to change it so that it goes to a custom link like this: ...
0
votes
1answer
54 views

How do I turn off the blog and archives?

Is there a fixed set of htaccess rewrite rules I can use to "turn off" everything blogging related? It's not enough to just not show the links in the menu, I want to completely hide everything ...
1
vote
1answer
208 views

Posting blog entries in screenplay format

Recently I've been working on a series of scripts and wanted to publish them on my site as blog entries, largely because having them just sitting on my hard drive with only a few people reading them ...
0
votes
1answer
2k views

Hide a category of posts from main blog, and only show in category view

I would like to hide a post on the main blog page (run on index.php) and have it only show up when the visitor views a particular category. I have tried the following just before the loop: <?php ...
1
vote
0answers
101 views

Is there a way to import a folder of HTML files into the blog?

I have a folder of about 100 HTML files (all marked up consistently) that I want to turn into individual blog posts. Each one has a paragraph that says "Posted by User on 4/9/2013 5:45:52 PM", but ...
0
votes
1answer
240 views

Two blogs one page

The idea is basically to create a blog, and have status updates/quotes beside the blog in a separate column. How does one go about making that happen? EDIT: The goal is not to create two separate ...
0
votes
2answers
416 views

Blog post - single.php url

I have a simple blog page that just lists blog posts on a page called 'news' http://my-site.co.uk/news I have a single.php page to display the actual post when it is clicked on 'news' The single....
0
votes
0answers
60 views

List post categories that link to a page showing those posts

I have posts with different categories. I have a blog page that lists the posts like this. <?php $blog_args = array( 'post_type' => 'post', ...
0
votes
1answer
269 views

How to maintain wordpress site blogs in production and staging?

I work as a website admin in my company. We are selling digital products using WooCommerce. We wanted to have staging and production in order to avoid any site down. So in staging we use to create ...
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 ...
1
vote
2answers
270 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 ...
2
votes
1answer
40 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 ...

1 2 3 4 5 8