• Resolved provideforme

    (@provideforme)


    When I look in GraphQL I can see the ilj links are showing up, however they do not appear on our published site. We have multiple sites that have s similar structure and utilize many of the same plugins that have not had this problem, I am wondering if perhaps you could help us locate the issue. We use Gatsby for our front end.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support markilj

    (@markilj)

    Thank you for contacting us.

    Can you take a screenshot of the ILJ statistics? Is there a link index built in there?

    If there are links generated in the dashboard but not in the frontend page itself, the issue would be caused by your theme/template. We have a work around these due to lack of any filters available for the get_the_content(), we have added our own to filter out that function.

    To use get_the_content() just like before, you can just add this apply_filters on the templates so that the links will be generated.

    Snippet:
    $content = apply_filters(‘ilj_get_the_content’, get_the_content());
    echo $content;

    or
    $content = apply_filters(‘ilj_get_the_content’, $term->description);
    echo $content;

    You can use our filter in your template or theme for it to have the links. This usually works automatically if the theme is using the default wordpress functions, we have provided this filter for more customized websites.

    Hope this helps, please let us know how this works out for you.

    Thank you

    Thread Starter provideforme

    (@provideforme)

    Here is a screenshot of the ILJ statistics, We will take a look and see if we can incorporate that into our theme. We will report back. Thank you.

    Thread Starter provideforme

    (@provideforme)

    Our Lead developer has said that since we are headless that code would not apply.

    Plugin Support markilj

    (@markilj)

    I see, is there a way in a headless setup that you are able to alter the frontend content in any way?

    If so, I think you can call our function for example before outputting the content you can call this function: If it’s possible in your setup here is just a sample of how our linkBuilder for content can be called and applied to content.

    use ILJ\Core\LinkBuilder; 
    
    $link_builder = new LinkBuilder($id, 'post'); // Use post for post type , term if it's a taxonomy
    
    $content = $link_builder->linkContent($content_variable); // replace the content_variable with your content
    
    return $content;

    You mentioned you have other websites that are similar in structure and didn’t encounter this issue? Are there some sites you have that are headless to and using the same plugin and didn’t encounter an issue with our plugin?

    Thank you

    Thread Starter provideforme

    (@provideforme)

    The data in the API is fine, it’s definitely something on our end. Thanks for trying to help figure it out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Keywords Appear in GraphQL but not on the actual published site’ is closed to new replies.