csloisel
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: WP_Query Alphabetical IssuesMy understanding was I could query the 4 latest posts and then have it alphabetical order them on output.
Unfortunately no, that’s not quite how it works. The easiest thing to do here would be to sort the posts after the query.
Forum: Fixing WordPress
In reply to: Signup Form Still Appears Despite Deleted CodeMake sure you are editing the correct sidebar, and remove the widget completely. What happens after you remove the code, does it show back up when you refresh the admin?
Forum: Fixing WordPress
In reply to: Signup Form Still Appears Despite Deleted CodeI don’t know what widget you deleted but that subscribe widget is not a text widget, based on the markup it’s output is from an “eNews Widget”. So that’s the one you should be removing.
edit: I just realized you were referring to a different widget.
- This reply was modified 9 years, 3 months ago by csloisel.
Forum: Fixing WordPress
In reply to: I can’t create pages (no textarea)Which default theme did you activate? Try activating the twenty seventeen theme.
- This reply was modified 9 years, 3 months ago by csloisel.
Forum: Developing with WordPress
In reply to: connection external databaseWhat exactly are you trying to do? I recommend using wpdb instead of direct mysql queries. See: https://developer.ww.wp.xz.cn/reference/classes/wpdb/.
Forum: Fixing WordPress
In reply to: Need Archive for Custom Post TypesYes that is the standard taxonomy rewrite structure. You can add pagination to that It sounds like there may just want to add pagination to the page template you pulled that region code from though. Or do you need a completely separate url to have pagination, and keep the top 5 template as is?
- This reply was modified 9 years, 3 months ago by csloisel.
Just walk the source of the dynamic_sidebar() function to see where it’s breaking. Note the $wp_registered_sidebars, and $wp_registered_widgets global variables. Make sure you are registering your widgets and sidebars in those vars. Otherwise you will have to come up with custom functions to display the sidebars.
Forum: Fixing WordPress
In reply to: Need Archive for Custom Post TypesI’m not sure you need to add a function, It’s hard to say without looking at your code.
I would start by trying to figure out which template is being used for the region listing/archive pages. Unless there’s extremely custom handling there it’s probably one of the formats listed here: https://developer.ww.wp.xz.cn/themes/basics/template-hierarchy/#custom-taxonomies.
I would then add then try adding one of the standard pagination methods to that template: https://developer.ww.wp.xz.cn/themes/functionality/pagination/#methods-for-displaying-pagination-links which again should work if there’s no really custom handling with the queries.
You aren’t likely to find anything that specific as a plugin. Something like that would have to be developed for the particular use case.
Forum: Fixing WordPress
In reply to: Issue with getting WordPress in own directory visible on rootAlso make sure your host is using Apache and not Nginx, this method only works on Apache.
It’s really difficult to answer this without seeing the code, but my guess is that the sidebars or widgets aren’t being stored in the global registered sidebar and widget variables.
Forum: Fixing WordPress
In reply to: Login Page is InsecureThis doesn’t sound like a WordPress issue. This is the browser telling you that the connection isn’t over https. Most of the major browsers are pushing for https on all sites, and I suspect this is part of that effort. If you want to get rid of the message you will probably have to install an SSL certificate on your site and migrate to https.
- This reply was modified 9 years, 3 months ago by csloisel.
Forum: Developing with WordPress
In reply to: Custom Query tag not linking to correct postYou are using template tags with the slides so you will either need to move the slide output to inside your wp loop or replace the template tags with get_*() functions using the slide IDs. I recommend the former, there really isn’t any point in looping through the slides twice.
Forum: Fixing WordPress
In reply to: How to – (almost) random post & exclude already seenI don’t know of any plugin off the top of my head that has functionality that specific, and a quick search isn’t turning up anything promising.
What your asking isn’t that difficult to pull off, it would just require a little theme development. I would create a custom page template using the general post template as a base, then add a single post query to the template using sort by random. For preventing double post views you can store the post id in the user meta and exclude the meta field from each query on load. This would require the user to be logged in though. There are alternatives like using a cookie or some sort of unique ID like an ip address but each of those have their limitations as well.
- This reply was modified 9 years, 3 months ago by csloisel.
Forum: Fixing WordPress
In reply to: Exported files, then transferred hosts. Cannot import files.Are there image files in the export? If you need to recover the images I would try to see if your account on wordpress.com is still active and they can be recovered there, or try to get support on https://en.support.wordpress.com/.