keithd77
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: create a custom page on theme activationHi,
You can add something like this in the functions.php file.
if ( is_admin() && isset($_GET[‘activated’] ) && $pagenow == “themes.php” ) {
global $wpdb;$sql = “
INSERT INTO $wpdb->posts (
ID
,post_author
,post_date
,post_date_gmt
,post_content
,post_title
,post_excerpt
,post_status
,comment_status
,ping_status
,post_password
,post_name
,to_ping
,pinged
,post_modified
,post_modified_gmt
,post_content_filtered
,post_parent
,guid
,menu_order
,post_type
,post_mime_type
,comment_count
)
VALUES (
NULL , ‘1’, ‘0000-00-00 00:00:00’, ‘0000-00-00 00:00:00’, ‘aaa’, ‘page-title’, ”, ‘publish’, ‘open’, ‘open’, ”, ‘page-title’, ”, ”, ‘0000-00-00 00:00:00’, ‘0000-00-00 00:00:00’, ”, ‘0’, ”, ‘0’, ‘page’, ”, ‘0’
)
“;
$wpdb->query($sql);
$page_id = $wpdb->insert_id;
$sql = “insert into “. $wpdb->postmeta . “(post_id, meta_key, meta_value) values($page_id, ‘_wp_page_template’, ‘custom-template.php’)”;
$wpdb->query($sql);
}
Forum: Fixing WordPress
In reply to: Customize Navigation Menu for Each “Page”your reply helped me out… late thanks
Forum: Fixing WordPress
In reply to: uploading large files through WP?How cool would it be if there was a plugin that would act like a web based FTP program build within word press.
So when you are using podpress you could upload your file right from the post screen.
This idea makes me want to increase my programming knowledge.
Forum: Themes and Templates
In reply to: Why won’t my permalinks work without index.php?Wooohooo It works
I have been trying to figure out how to get ride of that index.php in my permalink for 2 days now and still have all my links work.
Thank you for this post!
-Keith
Forum: Fixing WordPress
In reply to: Permalinks contain index.phpI am having the same issue. Using Apache mod?write is on.
The following link works until I click on a single post or Archive https://www.myblogurl.com/post-name
It seems to be forcing me to use the index.php for the permalink to work properly.
example – https://www.www.myblogurl.com/index.php/post-nameThis dosn’t make sense to me. Any ideas on how to fix this?
I would like my permalink without index.php
Thanks in advance
-keith
Forum: Fixing WordPress
In reply to: Can’t remove index.php from URLI am having the same problem. I am running apache.
I am unable to have https://www.myblog.com/postname
it must be https://www.myblog.com/index.php/postnameHow can I have my link without the index.php