Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Sorry for the lack of feedback, but good job on the last few updates! I think you might have fixed this — whether inadvertently or intentionally. It seems as though the error has completely gone for me? I’ll make sure to reinvestigate if it appears again, but it’s great so far.

    Many thanks for your efforts, and appreciate the support + plugin.

    Any luck with replicating the issue? I wonder if there’s some kind of plugin conflict here. I might have to create a staging site and disable each other plugin sequentially, but I don’t think there is a conflict — there’s nothing else that affects my permalinks to my knowledge.

    Please do let me know if you make any progress here as it’s pretty bad. I feel like learning PHP properly, just to find a solution to this!

    To try replicating the issue, avoid touching the permalink box at all. Just make edits to a page and then hit save, and do that a few times (edit and save, edit and save — don’t touch the permalink box). Maybe this will work.

    Hi. You may have made some typos here, e.g. you say ‘and selected “Page 1” as parent page of “Page 1″‘ — you must have meant to say Page 2 as the latter page, but instead of guessing what you did exactly, please see the hypothetical example below:

    Assume my site is website.com.

    1. Now let’s say I have a page called “definitions” (website.com/definitions/), which lists a bunch of definitions for various terms. A user can click on a definition for more information.

    2. I might then have a page called “WordPress definition”, and this could be a child of the definitions page. Example URL: website.com/definitions/wordpress-definition/

    3. Now, once I edit “WordPress definition”, after clicking save, I can see the permalink box in WordPress as showing: website.com/definitions/definitionswordpress-definition/

    3.1. I now have to manually edit out the extra string in the URL to fix it. This always works the second time round, but it’s as if the permalink box *MUST* change upon every save — whether for better or worse.

    For example, if I *chose* to change the permalink, there would be no error. For example, if before saving I changed the permalink to website.com/definitions/joomla-definition/, this would work just fine. It’s when I leave it as it is (WordPress definition) that the box wants to generate an extra string for no reason.

    NOTE: This does not happen 100% of the time. But it happens maybe 80-90% of the time. Yes, very strange.

    I am having the same issue. For a lot of time I just “put up with it”, and found it would stop if I selected the permalink box before updating a post. Now more recently this does not fix it — it continually changes permalinks from for example “category/page/” to “/category/categorypage/”.

    This is super irritating, because every time I update a page, I then have to re-update it because I need to fix the permalink error.

    Please could you guys look into this? It’s the plugin, not anything else. Why would the plugin generate this extra string — equal to the parent page/directory path?

    Thread Starter usernamenottaken

    (@usernamenottaken)

    Thanks Ajay. Yes, sorry, it’s a bit confusing to explain over the internet!

    Although I’m not great with coding, I will take a look at your link.

    The reason is because I wanted the glossary to be a separate section, insulated from all of my other content. If I find this too difficult, I’ll just leave it as is.

    Thanks a lot.

    Thread Starter usernamenottaken

    (@usernamenottaken)

    Thanks for your message Ajay but again you misunderstand me.

    I have already done what you’ve suggested here. What I can’t manage to do is have the results only return links to pages that are using the same definition.php page template.

    Another way to explain it… Imagine I have a definition page called “Definition of Grass”. The related links might show the following:

    – Definition of Green Grass (uses definition.php)
    – Definition of Short Grass (uses definition.php)
    – Definition of Long Grass (uses definition.php)
    – Guide to Grass (does NOT use definition.php)

    You see, in the above example, I don’t want pages like “Guide to Grass” showing up. I only want pages using definition.php to show up in the results. I want to limit the results in the CRP box to only pages that use definition.php as their templates.

    Thank you for your patience.

    Thread Starter usernamenottaken

    (@usernamenottaken)

    Yes, re-reading your answer, I think you might have understood me.

    In this case, I have a glossary of terms, with a definition.php template that is applied to every “definition” page, for each definition in my glossary. So on a definition.php page, I want it to effectively show “related definitions”.

    Thread Starter usernamenottaken

    (@usernamenottaken)

    Hi sorry I don’t really know much of PHP. I can’t get it to work. Any chance of a quick hand on this?

    The following works:

    <?php
    if ( is_page_template( 'definition.php' ) ) {
    
      if ( function_exists( 'echo_crp' ) ) { echo_crp( ); }
    
      }
    ?>

    But I now want to echo my definition.php template pages, and don’t quite know how to integrate it. Throwing stuff together I came up with the non-working code below:

    <?php
    if ( is_page_template( 'definition.php' ) ) {
      $myArray = array(
        'post_type' => 'page',
        'meta_query' => array(
            array(
                'key' => '_wp_page_template',
                'value' => 'definition.php'
            )
        )
      );
      if ( function_exists( 'echo_crp' ) ) { echo_crp( $myArray ); }
      }
    ?>

    The code above just returns all pages again..?

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