Cory.Nickerson
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Changing home page to custom file?I figured this out. Wasn’t sure where I needed the home.php file. Figured out it had to be in the active THEME directory. I was placing it in the root directory.
Forum: Fixing WordPress
In reply to: Changing home page to custom file?I need the homepage to be a new custom file I made for a plugin. If that helps. So instead of doing whatever is in the index.php which loads on default, it needs to display the content of my custom.php file.
Forum: Hacks
In reply to: Limit dimensions of Full Size imageHow are the images being uploaded? Are you coding your own plugin that has an upload function or trying to resolve an issue with a current plugin or feature of wordpress?
Forum: Hacks
In reply to: Creating a URL for a functionSomething along the lines of how this works, but I don’t want it to create a link in the menu.
https://codex.www.ads-software.com/Function_Reference/add_plugins_page
Forum: Hacks
In reply to: Creating a URL for a function<?php add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); ?>
See how in that function the $menu_slug and $function works? Thats what I need to do but WITHOUT creating a new menu. I just need to assign a function to a URL when that URL is visited.
Forum: Hacks
In reply to: Creating a URL for a functionI want it to work like how
add_menu_page
works kind of.In
add_menu_page
the 4th argument creates a slug for the URL then the 5th argument is a function to execute when that URL is visited.Forum: Hacks
In reply to: Creating a URL for a functionI guess basically what I need to do is create a slug for the URL and define a function for it to execute when the URL is visited? Not sure how to do this though.
Forum: Hacks
In reply to: Trouble with admin url's.Figured this out.
In the add_menu_page and add_submenu_page functions you need to create a function (the field I left blank) and have that function include the .php pages. Then for the menu slug you are free to enter whatever you want.
Forum: Hacks
In reply to: Trouble with admin url's.Would I need to use
apply_filters('plugins_url', $url, $path, $plugin)
?Forum: Hacks
In reply to: Trouble with admin url's.Still not sure on how to do this. Can you show me an example please?
Forum: Hacks
In reply to: A Few QuestionsYes Konstantinos. ??
Would I just include it normally with the PHP include ‘path/to/file.php’;?
Like if I want to include the header and footer from the theme, and then also will need to include the body of custom templates from my plugin.
Forum: Hacks
In reply to: Hook for creating a custom page?Well what I have is a 5 page series of forms. It’s a 10 question form using radio buttons the user submits. The form submits to itself and validates the information to make sure there is no empty fields, and if there are no errors it passes them along to the next page in the form. I need it to match the style for the rest of the site, with the header and footer and whatnot.
Forum: Hacks
In reply to: Creating a custom page in plugin codeI think this is also what I am looking for as well. I have a php file coded but I don’t know how to integrate it into a wordpress and create a url for it from the plugin file.
Forum: Hacks
In reply to: Hook for creating a custom page?The pages aren’t through the WP blog system or whatever their system is. It’s a custom coded .php file. I don’t know how to create that for wordpress. How do I make a custom file that integrates into wordpress and find its url or whatever?
Forum: Hacks
In reply to: Formating TimestampsDanke. ??