Title: Shortcode settings for default pages
Last modified: June 6, 2020

---

# Shortcode settings for default pages

 *  Resolved [coffeesleep](https://wordpress.org/support/users/coffeesleep/)
 * (@coffeesleep)
 * [6 years ago](https://wordpress.org/support/topic/shortcode-settings-for-default-pages/)
 * Hi, I am new to Ultimate Member as well as to WordPress and having a difficult
   time getting the right default pages from Ultimate Member plugin.
    I was able
   to install and activate the plugin and I see the new pages, including Members,
   Register or Login, in “pages” tab.
 * However, when I set them up as a menu and go to the preview, although it shows
   a new URL when I hover on these items, it does NOT take me to the right page 
   when I click them. Instead, it will keep me on the same home page.
    The URLs 
   they show when I hover are all with paths something like `/?page_id=14`.
 * My files right under my theme folder are as follows )am I missing something?):
   –
   footer.php – functions.php – header.php – index.php
 * My functions.php only has a couple of lines – was wondering if I need to add 
   anything here, maybe some shortcodes?:
 *     ```
       <?php
       add_theme_support('menus');
       add_theme_support('post-thumbnails');
       ```
   

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [coffeesleep](https://wordpress.org/support/users/coffeesleep/)
 * (@coffeesleep)
 * [6 years ago](https://wordpress.org/support/topic/shortcode-settings-for-default-pages/#post-12948627)
 * Additional note on what I tried: When I add a blank `page.php` file and just 
   add a text “hello”, all the default pages will show this “hello” page. Is this
   because the new page took over index.php based on template hierarchy? Am I supposed
   to copy any of the .php files from the wp-content > plugins > ultimate-member
   folder? (which did not seem to work..)
 *  Thread Starter [coffeesleep](https://wordpress.org/support/users/coffeesleep/)
 * (@coffeesleep)
 * [6 years ago](https://wordpress.org/support/topic/shortcode-settings-for-default-pages/#post-12949678)
 * I think I made a tiny step forward by copying the template file from “templates”
   folder of the plugin. I renamed the file based on the URL that shows as a path
   for each menu, e.g. renamed `members.php` to `page-12.php`.
    Based on the template
   hierarchy, I suppose, the page is now referring to this page, but shows this 
   error; basically I cannot find where `$args` is defined. In a separate file..?
 *     ```
       Notice: Undefined variable: args in /var/www/html/wordpress/wp-content/themes/imagepjtheme/page-12.php on line 12
   
       Notice: Undefined variable: args in /var/www/html/wordpress/wp-content/themes/imagepjtheme/page-12.php on line 14
   
       Warning: array_merge(): Argument #2 is not an array in /var/www/html/wordpress/wp-content/themes/imagepjtheme/page-12.php on line 14
   
       Notice: Undefined index: form_id in /var/www/html/wordpress/wp-content/plugins/ultimate-member/templates/members-grid.php on line 3
   
       Notice: Undefined index: form_id in /var/www/html/wordpress/wp-content/plugins/ultimate-member/templates/members-list.php on line 3
       ```
   
 * It would be greatly appreciated if someone could guide me on this.
 *  Thread Starter [coffeesleep](https://wordpress.org/support/users/coffeesleep/)
 * (@coffeesleep)
 * [6 years ago](https://wordpress.org/support/topic/shortcode-settings-for-default-pages/#post-12961472)
 * I was trying several different things and it may have been because I am creating
   my on theme. It seemed to have been working on default themes e.g. twentynineteen.
 * Could someone be able to let me know what I need to add to/modify in my original
   theme in order to have Ultimate Member plugin working?
 * I made a new theme from scratch with this bootstrap theme as a starting point.
   
   [https://startbootstrap.com/themes/freelancer/](https://startbootstrap.com/themes/freelancer/)
    -  This reply was modified 6 years ago by [coffeesleep](https://wordpress.org/support/users/coffeesleep/).
 *  Thread Starter [coffeesleep](https://wordpress.org/support/users/coffeesleep/)
 * (@coffeesleep)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/shortcode-settings-for-default-pages/#post-12988398)
 * I was able to move forward when I added singular.php file. I made additional 
   changes on top of that but this file seemed to be the file I was missing. Thank
   you if you took a look into this issue.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcode settings for default pages’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 4 replies
 * 1 participant
 * Last reply from: [coffeesleep](https://wordpress.org/support/users/coffeesleep/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/shortcode-settings-for-default-pages/#post-12988398)
 * Status: resolved