# Widgets creates (no title)/404 error link in recent posts

**URL:** <https://forum.pinegrow.com/t/widgets-creates-no-title-404-error-link-in-recent-posts/4425>\
**Category:** WP Starter Theme\
**Created:** [August 7, 2020, 5:13am UTC](https://forum.pinegrow.com/t/widgets-creates-no-title-404-error-link-in-recent-posts/4425 "2020-08-07T05:13:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bnordby](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/bnordby/32/2637_2.png) [@bnordby](https://forum.pinegrow.com/u/bnordby)\
**Post date:** [August 7, 2020, 5:13am UTC](https://forum.pinegrow.com/t/widgets-creates-no-title-404-error-link-in-recent-posts/4425/1 "2020-08-07T05:13:00Z")

</div>

I’ve working on a project and been trying to adapt the Starter Theme 2.

The links in the Right Sidebar Recent Links section aren’t working properly on all pages. On Category pages I get a link “(no title)” that clicks to a page not found 404 error page.

![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/2307c18e5d2496ecde38cfdef272a06e9ac47509.png)  
I’ve tracked the odd behavior to widgets enabled within the theme customizer.

e.g. [http://staging.criverwatch.org/category/main-article-archive/](http://staging.criverwatch.org/category/main-article-archive/)

This code was one post entry in the wp\_posts mysql table:

> ```
> {
> "st2-reboot::show_right_sidebar": {
> "value": true,
> "type": "theme_mod",
> "user_id": 5688,
> "date_modified_gmt": "2020-08-07 03:20:54"
> }
> }
> 
> ```

The widget only show those broken links on Category pages, as far as can tell. It works properly on the home page, individual posts, and author pages.  
 ![Shared with Zight](https://p190.p3.n0.cdn.getcloudapp.com/items/yAub4rPO/Image%202020-08-06%20at%2010.14.44%20PM.png?source=social&v=2b6eabd8213df35b54d74029b7c82839)  
e.g. [Page not found – California River Watch](http://staging.criverwatch.org/2020/07/16/enviroatlas-training-webinar/)

Can anyone suggest ways to correct this or help me figure out how to track down the odd Recent Pages link behavior?

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [August 7, 2020, 7:38am UTC](https://forum.pinegrow.com/t/widgets-creates-no-title-404-error-link-in-recent-posts/4425/2 "2020-08-07T07:38:51Z")

</div>

With some coding or the use of specific plugins, it is possible to achieve the display of recent entries for a specific category. By default, the recent posts standard widget is not suitable for the task.

You can read more from:

> **[How to Show Recent Posts by Category in WordPress](https://www.wpbeginner.com/wp-tutorials/how-to-show-recent-posts-by-category-in-wordpress/)**
>
> Want to show recent posts from specific category in WordPress? Learn how to display posts by category in WordPress with post thumbnails, excerpts, and more.

  

> **[How to Display Recent Posts From A Specific Category In WordPress](https://www.wpbeginner.com/wp-tutorials/how-to-display-recent-posts-from-a-specific-category-in-wordpress/)**
>
> Want to display recent posts from a specific category In WordPress? Here are two ways (plugin and code) to display recent posts from specific categories.

In the mean time, you can use widget logic plugin and set your widget to !is\_category() && !is\_tag() to prevent the faulty display on categories & tags templates.

---

<div class="post-metadata">

**Author:** ![bnordby](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/bnordby/32/2637_2.png) [@bnordby](https://forum.pinegrow.com/u/bnordby)\
**Post date:** [August 7, 2020, 5:58pm UTC](https://forum.pinegrow.com/t/widgets-creates-no-title-404-error-link-in-recent-posts/4425/3 "2020-08-07T17:58:44Z")

</div>

Thanks Emmanuel!

That’s a possible workaround. It’s sort of how I displayed only one category on the homepage. I hadn’t considered it could be applied to widgets. I figured I’d added something that was changing the action I intended and needed to fix the theme.

I’m still curious to my why I’m getting two different lists of links from the same widget depending on which page section is displayed. At least I don’t feel like the issue will put a stop to my project now.
