I am working on adding AMP to my wordpress single.php page. I have installed the plugin and am making the edits I need to have it looking correct. The issue I am having is many of my posts are multiple pages and I am trying to figure out how to get wordpress to render the other pages using AMP.
For example if i have a page with the url:
www.example.com/post-category/post-title/amp/
That would render perfectly using AMP BUT if I try to do:
www.example.com/post-category/post-title/2/amp/
That redirects to a different post instead of going to the second page of the intended post. If anyone has any idea of how to make this work as it should I would be very grateful. This is the last part I have to figure out to get my pages to work with AMP.
Thanks!
Related
I got my own created template in Wordpress. I got two pages : index.php and ab.php. My question is what should be a proper link code that links these two pages in menu? Because I always get 404 page or index.php page or blank. I try'ed everything including saving permalinks.
Here are a few of my examples:
http://example.com/?p=ab
http://example.com/?p=ab.php
<a href ="ab.php">
etc.
My guess is that this is your first WP theme.
If that is the case I should tell that the hierarchy from pure php websites won't work. Check this https://developer.wordpress.org/themes/basics/template-hierarchy/ WP uses the wp-admin part for creating new pages.
If you are switching from php to WP, I think I can help a bit by giving few pointers.
If there is an issue with your project I can't quite get what is happening but if you call http://example.com/ab.php the php inside will run however it's not cool to reference pages that way in WP.
I am using a website with a structure of www.example.com/blog
I have wordpress installed on the blog folder. I have a featured image that I want to have displayed on the www.example.com/blog but not on the actual blog post www.example.com/blog/post. They both use the same Css and I was wondering if I can do a conditional statement to set the display to none on the post page. I do not have access for the next 4 weeks to FTP in and change the actual code so I need a solution or advice.
I am not sure if I can use a variation of baseurl, as I am not sure how far it will back me out.
Google search didnt help me out too much
I got a very very strange bug! Im making a Wordpress blog theme and im fine but now i am making some posts, i wanted to insert HTML so i used some plugins so im able to add snippets to my post. Actually after i insert a shortcode all my HTML thats behind that shortcode doesnt get loaded! Here is an example:
As you see my page is completely blank after the content, so my menu etc is loading but my sidebar isn't i tried multiple plugins but it seems to do this with all shortcodes. Does someone now what im doing wrong?
Thanks in advance!
I have a Wordpress site that it is working perfectly with a bunch of posts and pages.
I have recently started a process to migrate the contents from another website and this has added ~16,000 pages and ~100,000 posts to the site.
Now, in the admin dashboard, when I go to the page list or I try to edit a page, it takes ages to load or stops loading because the timeout is fired. This is not happening with the posts, I can open the post list and edit any without issues. The frontend is working fine.
I'm starting to believe that Wordpress might not be able to manage that quantity of pages. Is there a solution to this? Replace Wordpress with another CMS like Drupal or Joomla is my latest option.
I also tried to tune mySQL, disable all the plugins (I only have a few), etc. with no luck at all.
Thank you in advance!
UPDATE:
I found out the reason of this slowness. When editing a page, Wordpress displays a dropdown list to select a parent page. This list is populated with every single page available on the site (ugh) and this is causing the huge load times. If I "tell" Wordpress to not show this dropdown list (via functions.php or editing the core), everything goes back to normal.
i'm hoping someone can assist, with setting up a dynamic page in wordpress
We currently have thousands of images but i don't want these setup as posts, tho i still want them within the wordpress site, so I'm wondering is it possible to create a page domain.com/newpage and if accessed via domain.com/newpage?funny it would display the image funny.jpg from another directory on the server
Obviously id need to setup a custom page template which i can do but im struggling with the dynamic code bit
any help is appreciated
You can add images under Media in Admin. They would not be linked to a post but they can be used throughout the site.