• Resolved coffeesleep

    (@coffeesleep)


    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

    (@coffeesleep)

    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

    (@coffeesleep)

    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

    (@coffeesleep)

    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/

    • This reply was modified 4 years, 9 months ago by coffeesleep.
    Thread Starter coffeesleep

    (@coffeesleep)

    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.