implenton
Forum Replies Created
-
Hello @uxarax,
using this:
$pages_with_the_contact_template = get_pages( array( 'meta_key' => '_wp_page_template', 'meta_value' => 'template-contact.php' ) ) ;you can get the pages using a certain template. You can loop over it and use
get_permalink()to get the URLs.If you are confident that only page is using it, you can do something like this:
$link = get_permalink( $pages_with_the_contact_template[0]->ID )I hope this helps.
Hello @ajwah,
maybe this answers your question: https://ticket2604.wordpress.com/2016/06/13/why-post-type-name-is-limited-to-20-character/
Cheers.
Forum: Fixing WordPress
In reply to: How to use custom fields with a child themeHello @seikopath,
displaying this on your site is quite simple.
First, you have to locate your theme files. If you are using a relatively typical theme the file you are looking for might be single.php.
Then you can use the
get_post_metafunction to return the value you store in the custom field.https://developer.ww.wp.xz.cn/reference/functions/get_post_meta/#comment-315
Also, check this article: http://code.tutsplus.com/articles/quick-tip-a-4-minute-crash-course-in-wordpress-custom-fields–net-11464
I hope this helps you.
Forum: Fixing WordPress
In reply to: WordPress autorespond to emailHello @jpurdy647,
One way to go about this is to use a transaction email service to handle your incoming messages and if they provide a webhook system you can perform an action afterwards, like updating the chat.
For example, Mailgun supports webhooks: https://documentation.mailgun.com/user_manual.html#webhooks
https://documentation.mailgun.com/user_manual.html#receiving-forwarding-and-storing-messages
Running you own email service that does this requires not only coding skills but server management expertise and the plan you are on, GoDaddy Managed WordPress, probably won’t allow you that.
Forum: Fixing WordPress
In reply to: commas turned into dots in google fontsHello @mdepablo,
If the situation it is as you presented, namely some typefaces render commas as dots and some not, that might have to do with the fact that those typefaces are missing that character. Not all typefaces are equal.
In this case, unfortunately, we can not help you. If you like a font you might try to contact the typographer who designed the typeface or the team at Google Fonts https://fonts.google.com/about
All the bests.
Forum: Hacks
In reply to: Posts within page within pageHello ,
It is definitely possible. What you are interested in is writing a secondary loop after the main loop.
You can read more about this here:
https://codex.ww.wp.xz.cn/The_Loop#Multiple_Loops_Example_1
and here:
https://codex.ww.wp.xz.cn/Class_Reference/WP_Query#Standard_Loop
If you are unsure what kind of parameters or it overwhelms you a bit, you want to pass this tool might help you: https://generatewp.com/wp_query/
It is hard to give you an exact implementation since all themes code look different, but with the help of official documentation you might just get it work ๐
I hope this helps you in a way to resolve your issue.
Forum: Fixing WordPress
In reply to: Category for positioning purpose. Excluding EVERYWHERE?Hello @giudansky,
You might consider querying the home highlights in a different way. One solution would be using a particular custom field for that instead of the “frontpage” category, another option would be to query the sticky posts or even using a custom taxonomy for this. There are many ways to do that query without using the default categories.
I hope I gave you some ideas.
Forum: Hacks
In reply to: User status 0 -1 1 2Hello @airsid,
user_status 1means that the user was marked as a spamread more about this: https://codex.ww.wp.xz.cn/Function_Reference/update_user_status#Mark_a_User_as_Spam
as for the
-1WordPress does not mark any user with-1. A plugin you use might do that, but not the core itself.I hope this helps you.
Forum: Fixing WordPress
In reply to: Featured image not showing when sharing post to FacebookHello @johnny Bravo,
I believe you are better off using a plugin for this. That is going to solve your issue without worrying about coding this for yourself.
Do you have any particular reason against using a plugin for this task?
Forum: Fixing WordPress
In reply to: Menu updates not savingForum: Networking WordPress
In reply to: updating selected database tables instead of whole wp directoryHello @maxident,
to know which files you changed and what was changed you need a version control system, the most popular ones are Git or SVN.
Once you understand the basic workflow and use case for the version control system you should look into deploying solutions. Deploying solutions are deeply tight into version controls, which also mean they just deploy (copy) the changed files.
Take a look at this articles:
http://guides.beanstalkapp.com/version-control/intro-to-version-control.html
http://guides.beanstalkapp.com/deployments/deploying-wordpress.htmlI am not trying to suggest that Beanstalk is the only option, they just happen to have good articles about this topic.
I hope this shed some light on your problem.
Forum: Fixing WordPress
In reply to: FTP uploads not appearing in the media sectionHello @rfollett,
The existence of the physical files in the uploads folder does not make them appear in the media library. They have to “registered” in the database as well. I am assuming you copied the files to a new WordPress installation without moving the database.
To register those files – in case you don’t want to move the database from the old site/installation – use this plugin https://ww.wp.xz.cn/plugins/media-from-ftp/
I hope this answers your question.
Forum: Fixing WordPress
In reply to: Hiding a page from navigation menuHello @steinspecht,
in case you are using menus to manage those link, just remove that item. https://codex.ww.wp.xz.cn/WordPress_Menu_User_Guide#Deleting_a_Menu_Item
In any case, take a look at this tutorial from the support blog: https://en.support.wordpress.com/menus/2/.
This should resolve your problem.
Forum: Fixing WordPress
In reply to: Featured image not showing when sharing post to FacebookHello @johnny Bravo,
In your
<head>tag theog:imageis missing, if you check with the sharing debugger from facebook, it says:The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.
Since you are not specifying explicitly it uses an image from your page.
Add that tag manually or consider using a plugin for managing your social tags, like Yoast SEO.
I hope this answers your question.
Forum: Fixing WordPress
In reply to: All images showing as full size in category viewHello @johnny Bravo,
you can fix this problem with CSS. Find this line in your style.css file
@import url("../indezinerpaperwall/style.css");After this line please insert the following code:
.post img { max-width: 100%; height: auto; }I hope this help you.