Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SHSharkar/b89836d6cbcabae163108b940574a3d8 to your computer and use it in GitHub Desktop.
Save SHSharkar/b89836d6cbcabae163108b940574a3d8 to your computer and use it in GitHub Desktop.
Enhanced Guide to Using PDF Shortcode Functionality

Enhanced Guide to Using PDF Shortcode Functionality

  1. Log in to the admin dashboard and navigate to the following URL: https://oddsseeker.com/secure/portal/pdf-shortcodes?sorts[updated_at]=desc. Alternatively, you can access the page by clicking on the "PDF Shortcodes" link located in the top navigation bar.

  2. On the "PDF Shortcodes" page, locate the file input section above the table. It consists of three elements: Title, File Input (Choose File), and Submit Button (Upload PDF).

  3. You have the option to add a title for the uploaded file. This title is only visible to backend users. If you prefer not to provide a title, simply upload the PDF file. The system will automatically extract the file's name and use it as the title.

  4. Before uploading your PDF file, ensure that it has a descriptive and meaningful name, as this name will be used for the uploaded file.

  5. After uploading the PDF file, a success message containing the shortcode ID will appear. Copy the shortcode from the corresponding column in the table.

  6. Navigate to the Market page, open the desired market post, and scroll to the Content field (WYSIWYG text editor).

  7. Paste the shortcode anywhere within the text editor. To avoid copying any additional CSS classes that could disrupt the editor's design, use 'Ctrl+Shift+V' on your keyboard or right-click and choose 'Paste as plain text'.

  8. Save the page and visit the front end. The PDF file will be displayed along with a sharing tool and a download button.

  9. If you wish to replace the PDF file without deleting the record, simply use the replace form and upload your new PDF file. The update will occur instantly.

  10. To delete a shortcode, click the delete button. A confirmation prompt will appear. Click confirm to delete the shortcode, or click cancel if you change your mind and decide not to delete it.

  11. Remember to remove occurrences of the shortcode from the Market posts before deleting it.

  12. As a fail-safe measure, the feature has been implemented to automatically remove the shortcode tag from the front end if it is not available in the database. This prevents potential SEO issues or visitor confusion.

  13. To enhance performance, this functionality is integrated with the Cache feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment