mattread
Forum Replies Created
-
Forum: Your WordPress
In reply to: Critique pleaseForum: Plugins
In reply to: Plugin Activation Problemcheck your error log. Usually found through cpanel… or sometimes in your public_html dir
Forum: Plugins
In reply to: Connecting to a remote WP installationuse XML-RPC. ??
Forum: Fixing WordPress
In reply to: MagpieRSS doesn’t cacheThe magpie included with wordpress caches it’s data in the database, in the options table.
Forum: Themes and Templates
In reply to: Theme: Durable – Fatal error: Cannot redeclare time_since()Tell the theme author to USE UNIQUE FUNCTION NAMES!!!!!
Forum: Your WordPress
In reply to: New Blog in Need of ReviewThese are just of my immediate thoughts …
1) as mpgeorge said, the header image is rather large. The “best” portion of any page, to display the most important content, is the top.
2) Where am I? On the “Home Page”, I see your first blog post, but the description of your site is way over on the right, all “smushed” up. This is the home page, so a nice concise description would be nice, right up front.
3) The header is not a link. It’s standard nowadays for the header to be a link back to the homepage.
4) (my personal preference) the left margin is kind of small. Think about a piece of paper, the left margin is quite big and makes it easier to read. the black so close to your text on the left is distracting.
5) When I get to the bottom of the page, where do I go? your navigation is st the top, but nothing at the bottom. A “back to top” would be nice. Even after the post content in a single post view; If the user doesn’t want to read the comments, give them somewhere to go.
But overall the design is really quite nice. Good big font size (although sans-serif is easier to read on-screen), well spaced out sections and headers. Good job.
Forum: Plugins
In reply to: add_submenu_page and class=”current” not workingit is because (sorry to all my english teachers for that one) all your menus point to the same page,
__FILE__
. thus when WP sets the “current page” it will be set to the filename of your plugin, and the Books menu, which comes first, will be highlighted (current).The solution is to put each of those sub menu pages in seperate files. like add-book.php and book-cats.php, or something like that. Then link your menus to those files. The main menu item, ‘Book’, can be handled by your main plugin file…
Forum: Themes and Templates
In reply to: Call to undefined function: bloginfo() in … /index.php on line 5Did you upload to the index.php in the main wordpress install directory? If so makes sure have the correct include and constant in there, like:
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');Forum: Fixing WordPress
In reply to: Do I exist – User SQL errorI would say that you most definitely exist…. strange question though ??
Forum: Fixing WordPress
In reply to: How to insert post slug name into post?yes. you can hook into
sanitize_title
. I beleive the default function that filters it in wp issanitize_title_with_dashes
. you canremove_filter()
that and create your own “sanitize” filter (afaik).I now MarkJaquith did a plugin
to allow periods in slugs.Forum: Plugins
In reply to: Get_Post Hook available?the_posts
hook might be what you are looking for.
https://wphooks.flatearth.org/hooks/the_posts/You can always use the
$posts
array too. like:$posts[0]->ID
Forum: Fixing WordPress
In reply to: How to insert post slug name into post?<?php echo $post->post_name; ?>
is one way.Forum: Plugins
In reply to: Spam Karma 2 > fetching # of spam from DBThis plugin might help you figure out the query:
https://mattread.com/projects/wp-plugins/spam-karma-2-stats/
The plugin hasn’t been updated cause the stats are now built in, but it should help.
Forum: Plugins
In reply to: Congratulations wordpress you made mysql a tedious affair :(Are you running the query with the
$wpdb
object. like:$wpdb->get_results($sql, ARRAY_A);
The
ARRAY_A
tells it to return as an associative array. And remember toglobal $wpdb
if inside a function.Also that will only work if the
zen_images
table is in the same DB as WP. If not you’ll have to create your ownmysql_connect
etc..Forum: Fixing WordPress
In reply to: Pages Converted to Postsif you can get a list of the ID’s of the pages, you can do a sql query to change the post_type back to page … if you can/want to take the time to find them all, we could come with some code for you.
OR if you have a backup of the DB before you got the svn, restore it then run upgrade on that …
——————————
Matt Read
https://mattread.com