Need to optimize this PHP script for "recent posts". Fatal error when post count is high

The code below is resulting in an error on a site in which there are ~ 1500 posts. It performs fine when post count is nominal, however, this heavy load is exposing the weakness of the code and...

How can I safely link my WordPress custom recent posts widget title to the category chosen in the widget?

Ive created a widget that shows the most recent posts from a category. I would like to link the widget title to the category archive chosen in the options. Im using wp_dropdown_categories to set...

Trying to select the WordPress generated Widget class?

Okay, new to WordPress. I have created the wordpress recent posts widget, which has generated a some new WordPress Markup which I am trying to select to add my custom style. After researching on...

Optimize slow query in WordPress plugin "Better WordPress Recent Comments"

I'm optimizing the queries against MySQL and my slow queries log shows me that the WordPress plugin "Better WordPress Recent Comments" Widget that shows the last 5 recent comments grouped by...

Optimizing a query to show recent posts with a "View All" link when postcount exceeds maxpost setting

I have a setting in my theme that allows the site owner to set the maximum number of posts ($maxPosts) to display in a "Recent Posts" menu. I'm using a custom script to generate the recent posts...

The styling of my sidebar widget is wrong

I have created a custom HTML widget and added it to my sidebar. Here is the link: https://www.publictalksoftware.co.uk/ This is what it looks like when I inspect the element: When I compare it...

Sidebar Widget Misaligned on Category Pages

I'm re-posting the same problem, but I'm better defining the issues. Basically, I was trying to limit the number of articles that appeared on my index page - however, it seems that I managed to...

Remove comment author links of widgets but keep in single posts

My problem is that I want to remove the links-author just in the recent comments widget in my sidebar, but still show him in the comments area of the posts. I want to do this to have a better SEO...

What is the proper way to integrate dynamic content into the layout.ejs file in a Sails.JS application?

Say I wrote a blog app in Sails.js. On every page in this app, there is a sidebar widget called "Recent Posts", where it lists the titles of the 5 most recent posts and clicking on them takes you...

Making Tumblr Widget With "MORE" Button

Alright, so I am trying to create a widget for my website that will display all of my recent blog posts. Tumblr already has a JS that will do this that looks like this. <script...

passing a variable into archive.php wordpress

I have a wordpress site, that has two blogs, "Latest News" and "Blog". Each have their own individual sidebars with recent posts, categories and archives. All is fine except for the archives. I...

Recommended WAI-ARIA implementation for navigation bar/menu

We are in the process of implementing (i.e. adding) WAI-ARIA support to the main navigation menu of a web portal. Menu is the one shown here: Menu is implemented by means of classic <ul> /...

How to properly display Hebrew in text widget?

I'm using Manjaro Linux KDE and the most recent versions of Tcl and Tk, and am attempting to display Hebrew in a text widget. In testing, the Hebrew text was pasted into the Tcl script in the Kate...

Redux state tree structure: "same type of data with different format / amounts of detail"

I've done Dan Abramov's intro series on EggHead, and am working on a real world app. The domain is complex, so I'll run with a classic "blogs" example. Let's say, we have an "index / list" page,...

What is the correct Spotify action for a now playing intent filter?

Short Version<br/> The Spotify Android application introduced a 'Device Broadcast Status' switch in a recent release, I want to receive those broadcasts in my application. What broadcasts are...

import text file to Access 2003 database using Python

I'm trying to import a pipe delimited text file into an access database with an existing table using a Python 3.4 application I'm working on, but I'm having some trouble. The application will be...

WP custom_pre_get_posts breaks theme

I added this code weeks ago, but it suddenly stopped working last night, how could that be? It works fine on a local server, but not on a shared host. Local is running PHP 5.5.3 and host was...

Conflict with stand-alone Ajax CRUD script only when used within WordPress - Can't update values

I'm trying to integrate the "ajaxCRUD" class (http://ajaxcrud.com/) with WordPress. What I was hoping to achieve was to have a page template that displayed values from a database utilizing this...

Wordpress function.php Error

ive been working on my wordpress website source code, when I try to reload the page I get this error: >Parse error: syntax error, unexpected end of file in...

How to Mend JSON Issues in Data Returned by API?

I'm working with the WordPress.org Plugin API (not the WordPress Plugin API, but the actual wordpress.org Plugin API). I have had it write JSON into a bunch of files with details about various...

Change Panel Image Size Wordpress 2017 Theme

I have a wordpress site using the 2017 Theme that has sections where you can embed one of your other pages. The Header Image size for my Blog page is HUGE, but when I go to the Blog page it is...