Now i get the problem, the basehref’s overiding the link so i decided to just add the permalink in the scroll link i’ve made. I’ve fixed it by using <?php echo get_permalink( $post->ID ); ?>#comments on the link in the single.php of my theme.
Related Posts:
- WordPress Ajax always returns a 404 error
- Calling a method from functions.php on a click of a button
- Nice scroll to wordpress
- Javascript code inside “” in core WordPress files .php
- Minify HTML, CSS, JS with PHPWee?
- Slide in Panel WordPress Post
- Show post in slider
- Populate dropdown with Child Pages based on Parent Page chosen
- search and replace preword from author
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Add .htm extention to a custom taxonomy
- Noscript not working as it should in wordpress site
- Add Codepen animation as Preloader to WordPress
- HTML escaping data with ajax requests
- Override user-edit.php to design own profile page
- How do i add slugs to a URL, but still redirecting to the same page
- Calling PHP Titles inside Javascript Markup
- Link to page with posts of specific type
- Replacing WordPress Icons (menu,icons32, etc)?
- Is it possible to isolate and use WordPress functions outside of wordpress
- Time Delay a URL Redirect for Specific Page
- Cascading dropdown select search based on Parent Page & Child Page
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Display WordPress search results based on the selected Sub-Category
- html form: redirect page after form completes submit function and posts data
- WordPress User Meta value variable into Google Gauge Chart
- Search bar for wp menu
- Adding HTML Code to Replace Text in PHP
- Executing php on button press
- Add other class content with reference class value
- Using Google Analytics in an enqueued JS file
- separate list of programs in html/javascript coming from php
- How to use wp_ajax_set_post_thumbnail?
- Passing a value from an input field to a php function in WordPress?
- How do I disable cache for a certain page?
- Current WordPress Page Title as Search Parameter into A Tag
- WordPress Slider is not working
- Show subcategory name selected in specific category woocoommerce
- sessionStorage saves input value in browser but it is not loaded in the form field
- Collapsible menu on post sidebar only expands and does not collapse
- Target a specific container to style on WordPress storefront theme
- scroll scrpit to particular button position to next id when click button
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Where to find the html for WordPress site? [closed]
- I need help implement a Javascript code into the PHP file
- Trying to customize wordpress drop down categories
- Is there a better way to output HTML as a shortcode?
- Load wp_editor on button click
- Slick slider not working on wordpress
- WordPress Visual Editor Stripping HTML Changes
- How to remove hardcoded characters from playlists?
- WordPress custom taxonomy description for each post?
- Conditional statement for parent, child and grandchild pages
- Handling an Ajax form submit
- Using an Image Slider twice on the same page
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- How to speed up admin-ajax.php in wordpress
- JQuery not working on WordPress Admin page [closed]
- Putting PHP variables into javascript [duplicate]
- How Display Posts on category
- How does this WordPress Plugin (Thrive Comments) apply their custom comment sort? [closed]
- ACF page while loop breaks footer while loop
- Embed html in php code
- Status 400 for AJAX POST Request with admin-ajax.php
- Incorrect MIME type for assets with Valet
- PHP array to JS array to use in google map
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Fancybox type popup window that’s not an iframe
- Help with .htaccess and Login with Subfolders
- How to optimize the IF condition with many conditions and same output [closed]
- Show latest posts in a plain HTML website custom widget [closed]
- How to add drag and drop functionalities to a div inside option panel
- PHP contact form not redirecting [closed]
- How to Schedule Cronjobs for start of every month and year
- How to change logo by category
- Covert WordPress Blogname into JQuery
- WordPressUser Submission Form
- Shortcode displaying at the top of the page [duplicate]
- PHP variables in a post?
- Background image no longer fits to screen now that project is in php files
- Shortcode in Shortcode/HTML Graphics and Pictures
- Ajax search box displays nothing if taxonomy doesn’t exist
- register dependency css and js inside a plugin class
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- HTML Formatting “single_term_title()”?
- ajax polling with admin-ajax.php
- Creating Log-In Page for backend server
- wordpress, Category ID
- A javascript function that simply runs a php function on the plugin
- Display text of price (minus 20%) on every product page in a sentence.
- Populate an array from the loop, and then read the array into JS
- Show contact 7 form in popup
- Arrange Category post manually when displayed
- WordPress adding in site URL to header links
- Execute PHP code in Javascript onclick
- Set variable in javascript and using in my shortcode
- Header location [closed]
- Custom HTML/CSS Theme into WordPress – SEO considerations
- JQuery UI Autocomplete showing as bullets
- Add Imports to Existing WordPress Import Map