Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am writing a script to import posts from a CSV file, but I need to generate a slug from the data source in order to query Wordpress to see if the post already exists, how does Wordpress generate the slugs? I will need to generate the slugs in the exact same way in order to correctly query the Wordpress database.
I found the answer, you can use the function sanitize_title().
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm working on a custom wordpress theme, and I want to have title/description in the middle of the header section.
title/description will not be static for all pages; I want to set them from the wp dashboard for each page.
Is there a way to do this? (without using if/else statement).
you can set the parameters as custom fields read here
by using the get_post_meta('key') you can return that on your code.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to know how can I show pages that contain a specific word written by random user in input text, because some contents are static.
P.S : If what I'm talking about is deprecated, can you propose to me a best solution for doing such functionality?
The best option is to keep your data in database. It will allow you to search and display content dynamically. Also in case you have some static pages, you can put them in database just for searching purposes if it's solution in your case.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am working on API that needs to add feature image but cannot use wordpress function to finish my goal. Can anyone tell me where and in which table of wordpress db the image is stored ?
And what i need to do to upload the image?
Follow This Step.
To upload the image without wp function you need to create a field in
wp_postmeta with meta_key = "_wp_attached_file" and
meta_velue="your_file_path".
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Is it even possible? If so, do I need to download a plugin to make it work?
(The Wordpress directory is located in webroot/blog/)
I don't want to customize my entire wordpress blog to look like my website when I could just (if possible) display all blog posts on a .ctp file.
Works perfectly with the WordPress API! Thanks.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a phpmyadmin database that stores data from a simple form. Now i just have to make a page that shows all the answers nicely. How do i import data from that database to the new page?
Fixed: I learned some simple php and then i was good to go. Sorry for any inconvenience.
you need to write query to fetch data from your database and Display it on another page