How to make pagination in format mysite.com/blog?page=page_number?
Does wordpress provide a possibility to change style of pagination
from
mysite.com/blog/page/page_number
to
mysite.com/blog?page=page_number?
I don't want to modify the wordpress core, so is there any opporunities to solve my problem?
Thank you
Related
I've tried searching but can't find any clear answers.
I have a Wordpress site with some non-Wordpress (PHP) pages that are located in the root directory.
I'm trying to display the content from a WP post on one of these non-WP pages. Since the post is constantly updated, simply copy/pasting the content won't work.
I guess I could create a template with the non-WP content and just exclude the theme/header/footer... but I'd prefer to keep the file in the root directory with the other pages.
Does anyone have any ideas of how I can accomplish this?
Thanks in advance :)
Perhaps you could use the rest api? https://developer.wordpress.org/rest-api/
The solution for you is providing an API for your Wordpress posts then use it in non-wordpress pages.
Also you can use the wordpress REST-APIitself, it has provided so many useful capabilities.
Take a look at it:
https://developer.wordpress.org/rest-api/reference/
I am new to using Wordpress as a developer as opposed to just using the dashbord but am struggling to understand a few things and would really appreciate some help.
For a site that does not require a blog - do you just create custom/specific page templates for each page that your site requires?
If so - presumably you code the content directly. But then how does the client edit their website's about page or any other page for example - because doing it through the dashboard isn't going to use the necessary CSS hooks without using classes, id's and HTML?
As a beginner to Wordpress - I can't see that posts are used on sites that don't have a blog, but am I correct or is using posts the way a client can edit content on their site, but just have posts styled to look like normal content?
Or am I wrong in thinking a company (I am starting as an intern at a web dev company that use WordPress) provides the tools or at least configures WordPress to enable the client to change content?
Any help getting me to understand the basic concept and way a developer would create a custom WordPress site would be much appreciated. Thanks in advance.
You can use page.php. In WordPress everyone create at least one custom template type to get wider design for custom pages.
You can refer here for more info.
Use Advanced Custom Fields with page templates. Say you are making an About page, call that template about and select that template in the backend editor. Once you save the page, the acf fields will show up and you can populate the content.
ACF: https://www.advancedcustomfields.com/
Page Templates: https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/
Hy, i just recently started to use Halogy, it's a cms based on codeigniter.
I'm currently just checking it out so i'm using the free version, but i cant get my mind wrapped around the custom navigation option.
First of all i cant access the navigation section, and i cant show custom navigation in the template using this {navigation(custom)}
Thanks for any help
Well! I am glad someone is using it. For your problem go to pages creat a page save and publish it and it will be available to use. That's all.
Hey guys, I'm trying to use my wordpress categories as subdomains without using a plugin because the only working plugin doesn't seem to work with the new wordpress.
So I created the subdomains and I'm searching for a way to let this category1.mysite.com to show the content of www.mysite.com/category/category1 without redirecting.
but my question is how to edit the links manually for www.mysite.com/category/category1
when someone goes to my site the theme shows links this way www.mysite.com/category/category1
instead of showing the subdomain, so what files or database table should I edit to change the way my theme shows the links of categories and subcategories ?
and also if you have a way to to the first step in the .htaccess file please tell me about it.
and thank you very much :D
Look into get_categories() function - this will return an array so you can do the following
foreach(get_categories() as $category) {
$url = $category->category_nicename.'.mydomain.com';
}
from this you should be able to build your own UL with the information.
It seems like you will need to use Apache's Mod_Rewrite feature in a way that is not standard with WordPress permalink features.
I have a site currently built on Wordpress. I have a requirement to pull out the "latest post" in a category (magazine issue), to allow the latest issue to be displayed in the sidebar of a Posterous blog template, either in an iframe or by other means.
What's the best way to achieve this? Shall I write a custom PHP page which queries the database directly to output the results that I want, and then display it in an iframe on the Posterous template? Or is there an easier way to achieve this?
You could register a widget to the sidebar or simply add code the sidebar.php directly. In the end, all you are doing is building a WP Query for the latest post in a category.