<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wordpress nâng cao - Hi You, I am Tade</title>
	<atom:link href="https://hoangthuc.com/category/wordpress/wordpress-nang-cao/feed/" rel="self" type="application/rss+xml" />
	<link>https://hoangthuc.com/category/wordpress/wordpress-nang-cao/</link>
	<description></description>
	<lastBuildDate>Wed, 15 Mar 2023 03:49:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://hoangthuc.com/wp-content/uploads/2024/02/logoTH-2-150x150.png</url>
	<title>Wordpress nâng cao - Hi You, I am Tade</title>
	<link>https://hoangthuc.com/category/wordpress/wordpress-nang-cao/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Plugin bất động sản với elementor builder</title>
		<link>https://hoangthuc.com/plugin-bat-dong-san-voi-elementor-builder/</link>
					<comments>https://hoangthuc.com/plugin-bat-dong-san-voi-elementor-builder/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Sun, 25 Aug 2019 03:15:33 +0000</pubDate>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Plugin wordpress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<category><![CDATA[Plugin bất động sản]]></category>
		<category><![CDATA[plugin wordpress]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=583</guid>

					<description><![CDATA[<p>Xin mến chào các bạn, hôm nay tui xin giới thiệu một sự kết hợp mới nữa của tui giữa plugin bất động sản và plugin Elementor builder. Đây cũng là một sản phẩm mới của tui, tui đã dung hợp và sẽ áp dụng cho các website bất động sản dạng landing page nhưng [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/plugin-bat-dong-san-voi-elementor-builder/">Plugin bất động sản với elementor builder</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="583" class="elementor elementor-583">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-87ba7be elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="87ba7be" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-no">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-78d0bf9" data-id="78d0bf9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-877684f elementor-widget elementor-widget-text-editor" data-id="877684f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Xin mến chào các bạn, hôm nay tui xin giới thiệu một sự kết hợp mới nữa của tui giữa plugin bất động sản và plugin Elementor builder. Đây cũng là một sản phẩm mới của tui, tui đã dung hợp và sẽ áp dụng cho các website bất động sản dạng landing page nhưng có công cụ lọc tìm kiếm của mình.</p><p>Dưới đây là một số phần trong plugin bất động sản mà tui đã kết hợp.</p>								</div>
				</div>
				<div class="elementor-element elementor-element-e35528f elementor-widget elementor-widget-heading" data-id="e35528f" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Bộ lọc tìm kiếm</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-53fb7c7 elementor-invisible elementor-widget elementor-widget-image" data-id="53fb7c7" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;bounceIn&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
																<a href="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_114724.png" data-elementor-open-lightbox="yes" data-elementor-lightbox-title="2019-08-25_114724" data-e-action-hash="#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6NTk0LCJ1cmwiOiJodHRwczpcL1wvaG9hbmd0aHVjLmNvbVwvd3AtY29udGVudFwvdXBsb2Fkc1wvMjAxOVwvMDhcLzIwMTktMDgtMjVfMTE0NzI0LnBuZyJ9">
							<img fetchpriority="high" decoding="async" width="640" height="267" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_114724-900x376.png" class="attachment-large size-large wp-image-594" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_114724-900x376.png 900w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_114724-300x125.png 300w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_114724.png 1140w" sizes="(max-width: 640px) 100vw, 640px" />								</a>
															</div>
				</div>
				<div class="elementor-element elementor-element-d160932 elementor-widget elementor-widget-heading" data-id="d160932" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Danh sách hiển thị khi tìm kiếm</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-a473480 elementor-invisible elementor-widget elementor-widget-image" data-id="a473480" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;bounceIn&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img decoding="async" width="640" height="292" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_114746-900x411.png" class="attachment-large size-large wp-image-593" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_114746-900x411.png 900w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_114746-300x137.png 300w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_114746.png 1120w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
				<div class="elementor-element elementor-element-8d61531 elementor-widget elementor-widget-heading" data-id="8d61531" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Chi tiết bất động sản</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-993f161 elementor-invisible elementor-widget elementor-widget-image" data-id="993f161" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;rotateIn&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img decoding="async" width="640" height="277" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_115555-900x390.png" class="attachment-large size-large wp-image-595" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_115555-900x390.png 900w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_115555-300x130.png 300w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_115555.png 1891w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
				<div class="elementor-element elementor-element-ecf1e98 elementor-widget elementor-widget-text-editor" data-id="ecf1e98" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Ngoài ra tui còn bổ sung thêm 1 số phần vào chi tiết bất động sản cho có không khí lu xu ri và chuyên nghiệp. </p>								</div>
				</div>
				<div class="elementor-element elementor-element-afa46fa elementor-widget elementor-widget-heading" data-id="afa46fa" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Thanh điều hướng khi scroll</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-8d74400 elementor-invisible elementor-widget elementor-widget-image" data-id="8d74400" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;bounceIn&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="194" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120007.png" class="attachment-large size-large wp-image-598" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120007.png 794w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120007-300x91.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
				<div class="elementor-element elementor-element-8884a5f elementor-widget elementor-widget-heading" data-id="8884a5f" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Các tiện ích của căn hộ.</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-384eb02 elementor-invisible elementor-widget elementor-widget-image" data-id="384eb02" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;bounceInDown&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="362" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120341.png" class="attachment-large size-large wp-image-599" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120341.png 797w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120341-300x170.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
				<div class="elementor-element elementor-element-32b9f02 elementor-widget elementor-widget-heading" data-id="32b9f02" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Tài liệu kiến trúc tham khảo</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-438f5de elementor-invisible elementor-widget elementor-widget-image" data-id="438f5de" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;bounceIn&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="174" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120354.png" class="attachment-large size-large wp-image-601" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120354.png 794w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120354-300x82.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
				<div class="elementor-element elementor-element-3cc18df elementor-widget elementor-widget-heading" data-id="3cc18df" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Các tiện ích xung quanh khu vực</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-e457dd1 elementor-invisible elementor-widget elementor-widget-image" data-id="e457dd1" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;bounceIn&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="433" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120423.png" class="attachment-large size-large wp-image-600" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120423.png 795w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120423-300x203.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
				<div class="elementor-element elementor-element-93ba9fc elementor-widget elementor-widget-heading" data-id="93ba9fc" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Video</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-62ed010 elementor-invisible elementor-widget elementor-widget-image" data-id="62ed010" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;bounceIn&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="425" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120407.png" class="attachment-large size-large wp-image-602" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120407.png 796w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120407-300x199.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
				<div class="elementor-element elementor-element-975ccbb elementor-widget elementor-widget-heading" data-id="975ccbb" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Bản đồ</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-9be8487 elementor-invisible elementor-widget elementor-widget-image" data-id="9be8487" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;bounceIn&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="310" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120756.png" class="attachment-large size-large wp-image-604" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120756.png 796w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120756-300x145.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
				<div class="elementor-element elementor-element-80b7346 elementor-widget elementor-widget-heading" data-id="80b7346" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">Liên hệ</h2>				</div>
				</div>
				<div class="elementor-element elementor-element-1c7b070 elementor-invisible elementor-widget elementor-widget-image" data-id="1c7b070" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;rollIn&quot;}" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="640" height="511" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120812.png" class="attachment-large size-large wp-image-603" alt="" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120812.png 795w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-25_120812-300x240.png 300w" sizes="(max-width: 640px) 100vw, 640px" />															</div>
				</div>
				<div class="elementor-element elementor-element-28c34e5 elementor-align-left elementor-widget elementor-widget-button" data-id="28c34e5" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm elementor-animation-pulse-grow" href="http://realestate.demowebart.com/" target="_blank" rel="nofollow">
						<span class="elementor-button-content-wrapper">
						<span class="elementor-button-icon">
				<i aria-hidden="true" class="fas fa-link"></i>			</span>
									<span class="elementor-button-text">Demo tham khảo</span>
					</span>
					</a>
				</div>
								</div>
				</div>
				<div class="elementor-element elementor-element-a83a625 elementor-align-left elementor-widget elementor-widget-button" data-id="a83a625" data-element_type="widget" data-e-type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
									<div class="elementor-button-wrapper">
					<a class="elementor-button elementor-button-link elementor-size-sm elementor-animation-pulse-grow" href="https://github.com/hoangthuc/realestate" target="_blank" rel="nofollow">
						<span class="elementor-button-content-wrapper">
						<span class="elementor-button-icon">
				<i aria-hidden="true" class="fas fa-cloud-download-alt"></i>			</span>
									<span class="elementor-button-text">View source</span>
					</span>
					</a>
				</div>
								</div>
				</div>
				<div class="elementor-element elementor-element-ff35bad elementor-invisible elementor-widget elementor-widget-text-editor" data-id="ff35bad" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;bounceIn&quot;}" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>Màn giới của tui đến đây là kết thúc. Thân ái chúc các bạn một ngày thật vui vẻ.  </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The post <a href="https://hoangthuc.com/plugin-bat-dong-san-voi-elementor-builder/">Plugin bất động sản với elementor builder</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/plugin-bat-dong-san-voi-elementor-builder/feed/</wfw:commentRss>
			<slash:comments>48</slash:comments>
		
		
			</item>
		<item>
		<title>Elementor công cụ builder website wordpress 2019</title>
		<link>https://hoangthuc.com/elementor-cong-cu-builder-website-wordpress-2019/</link>
					<comments>https://hoangthuc.com/elementor-cong-cu-builder-website-wordpress-2019/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Tue, 06 Aug 2019 11:11:44 +0000</pubDate>
				<category><![CDATA[Plugin wordpress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=577</guid>

					<description><![CDATA[<p>Hello các bạn, hôm nay tui sẽ giới thiệu các bạn công cụ builder website mà tui ưng ý nhất trong năm nay. Năm sau thì tui hỏng biết nhe. À đó chính là Elementor , các bạn có thể vào elementor.com để nghe ngóng. Hiện tại elementor đã ra đến phiên bản 2.6.7 và [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/elementor-cong-cu-builder-website-wordpress-2019/">Elementor công cụ builder website wordpress 2019</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hello các bạn, hôm nay tui sẽ giới thiệu các bạn công cụ builder website mà tui ưng ý nhất trong năm nay. Năm sau thì tui hỏng biết nhe.</p>
<p>À đó chính là <strong>Elementor</strong> , các bạn có thể vào elementor.com để nghe ngóng. Hiện tại elementor đã ra đến phiên bản 2.6.7 và tui không có quảng cáo cho elementor đâu nhe.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-579" src="https://hoangthuc.com/wp-content/uploads/2019/08/BENEFITS-OF-ELEMENTOR-PRO2.png" alt="" width="1280" height="720" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/BENEFITS-OF-ELEMENTOR-PRO2.png 1280w, https://hoangthuc.com/wp-content/uploads/2019/08/BENEFITS-OF-ELEMENTOR-PRO2-300x169.png 300w, https://hoangthuc.com/wp-content/uploads/2019/08/BENEFITS-OF-ELEMENTOR-PRO2-900x506.png 900w" sizes="(max-width: 1280px) 100vw, 1280px" /></p>
<p>&nbsp;</p>
<p>Bên cạnh những thứ vụn vặt như :</p>
<p>1.Kéo thả tùy biến khi điều chỉnh giao diện.</p>
<p>2.Xem giao diện thay đổi trong khi tùy chỉnh cũng hay nhưng tôi xem nó như vụn vặt thôi.</p>
<p>3.Thay đổi tùy chỉnh theo từng thiết bị trên chính công cụ editor cái này cung hay và  tiện lắm.</p>
<p>4.Lưu trữ các bản tùy chỉnh của mình thành template để backup phòng trường hợp này nọ (các đồng chí hiểu ý chứ).</p>
<p>5.Tùy biến cả điều hướng trang như single, blog, taxonomy,&#8230;</p>
<p>6.Elementor còn cho bạn tùy chỉnh layout của cả header và footer ( các này ở bản pro nhé nhưng àm ngon mà đúng không chỉ có $49 &#8211; không quảng cáo nhé).</p>
<p>7.Hổ trợ các modules cho woocommerce phần này nó cũng khá hay như card, menu cart mini, rating,&#8230; nhưng khi dùng các bạn lưu ý chỉ hổ trợ php 7.1 trở lên thôi nhé. Php phiên bản dưới 7.1 thì cứ chờ loading loading mãi mãi.</p>
<p>Sau tất cả những thứ vụn vặn có lẻ đến phần tôi thích nhất đó chính là elementor có những addon khá đa dạng cho phép developer có thể tác động vào loop và query của wordpress hay không nào. Có thể kể đến như:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-580" src="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-06_180504.jpg" alt="" width="1728" height="843" srcset="https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-06_180504.jpg 1728w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-06_180504-300x146.jpg 300w, https://hoangthuc.com/wp-content/uploads/2019/08/2019-08-06_180504-900x439.jpg 900w" sizes="(max-width: 1728px) 100vw, 1728px" /></p>
<p>Phần liệt kê tui hơi lười nhưng có chụp hình và icon installing cho sinh động đó. Nhưng phần này phải các bạn developer như tui mới cảm nhận được cái hay của nó.</p>
<p>Kết bài : Hiện tại so với các đối thủ khác như divi, visua composer, flatsome tôi đánh giá Elementor vượt trội hơn về trãi nghiệm người dùng và hiệu năng lập trình của nó đem lại. Tính tiện lợi của nó khá cao. Bài sau tui sẽ giới thiệu cho các bạn một website bất động sản tui đã build bằng Elementor.</p>
<p>Cám ơn quý dị đã xem bài viết của tôi. Good Night !</p>
<p>&nbsp;</p>
<p>The post <a href="https://hoangthuc.com/elementor-cong-cu-builder-website-wordpress-2019/">Elementor công cụ builder website wordpress 2019</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/elementor-cong-cu-builder-website-wordpress-2019/feed/</wfw:commentRss>
			<slash:comments>49</slash:comments>
		
		
			</item>
		<item>
		<title>Sử dụng media của wordpress để tải hình ảnh</title>
		<link>https://hoangthuc.com/su-dung-media-cua-wordpress-de-tai-hinh-anh/</link>
					<comments>https://hoangthuc.com/su-dung-media-cua-wordpress-de-tai-hinh-anh/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Wed, 20 Jun 2018 10:10:17 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<category><![CDATA[Thủ thuật wordpress]]></category>
		<category><![CDATA[wordpress nâng cao]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=547</guid>

					<description><![CDATA[<p>Hôm nay mình sẽ hướng dẫn cách sử dụng nút media trong quản trị wordpress để upload hình ảnh. Cốt lỏi của vấn đề là sử dụng đối tượng meta_image_frame trong thư viện wordpress. Mình sẽ tiến hành từng bước để các bạn nắm rõ: Bước 1: Tạo layout dạng HTML vu vơ và có các [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/su-dung-media-cua-wordpress-de-tai-hinh-anh/">Sử dụng media của wordpress để tải hình ảnh</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-548" src="https://hoangthuc.com/wp-content/uploads/2018/06/2018-06-20_164632.jpg" alt="" width="1432" height="144" srcset="https://hoangthuc.com/wp-content/uploads/2018/06/2018-06-20_164632.jpg 1432w, https://hoangthuc.com/wp-content/uploads/2018/06/2018-06-20_164632-300x30.jpg 300w, https://hoangthuc.com/wp-content/uploads/2018/06/2018-06-20_164632-900x91.jpg 900w" sizes="(max-width: 1432px) 100vw, 1432px" /></p>
<p>Hôm nay mình sẽ hướng dẫn cách sử dụng nút media trong quản trị wordpress để upload hình ảnh.</p>
<p>Cốt lỏi của vấn đề là sử dụng đối tượng <strong>meta_image_frame</strong> trong thư viện wordpress. Mình sẽ tiến hành từng bước để các bạn nắm rõ:</p>
<p>Bước 1: Tạo layout dạng HTML vu vơ và có các nút <strong>Media button</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;wrap&quot; id=&quot;theme_option&quot;&gt;
   
    &lt;div class=&quot;container-fluid&quot;&gt;
        &lt;div class=&quot;Logo&quot;&gt;
            &lt;div class=&quot;box-title&quot; data-toggle=&quot;collapse&quot; href=&quot;#logo&quot; aria-expanded=&quot;false&quot; aria-controls=&quot;logo&quot;&gt;Logo &lt;span class=&quot;dashicons dashicons-arrow-right-alt2 navbar-right&quot;&gt;&lt;/span&gt;&lt;/div&gt;
            &lt;div id=&quot;logo&quot; aria-expanded=&quot;false&quot; class=&quot;collapse in&quot;&gt;
                &lt;div id=&quot;images-container&quot; class=&quot;form-group&quot;&gt;
                    &lt;div class=&quot;input-group&quot;&gt;
                        &lt;input type=&quot;text&quot; name=&quot;wp_theme_logo_image&quot; id=&quot;logo-image&quot; class=&quot;form-control&quot; value=&quot;&quot;&gt;
                        &lt;div class=&quot;input-group-addon&quot;&gt;
                            &lt;input type=&quot;button&quot; class=&quot;logo-image-button btn btn-primary &quot; value=&quot;Chọn hình&quot;&gt;
                            &lt;input type=&quot;button&quot; class=&quot;remove-logo btn btn-primary&quot; value=&quot;Xóa&quot;&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;
                &lt;/div&gt;&lt;!-- end images container --&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</pre>
<p>&nbsp;</p>
<p>Bước 2: Khai báo thư viện <strong>Media </strong>và Script để gọi</p>
<pre class="brush: php; title: ; notranslate">
function wp_artisans_theme_back_end()
{
    wp_enqueue_media();
    wp_enqueue_script('custom', WP_PLUGIN_URL . '/Tester/bootstrap/js/admin_custom.js', array(),'',true );
}
add_action( 'admin_enqueue_scripts2', 'wp_artisans_theme_back_end' );
</pre>
<p>File Script</p>
<pre class="brush: xml; title: ; notranslate">
jQuery(document).ready(function($){
  // add image uploader functionality
        var meta_image_frame;
      $('.logo-image-button').live('click', function(e){
            e.preventDefault();

            if( meta_image_frame ){
             meta_image_frame.open();
                return;
            }

            meta_image_frame = wp.media.frames.file_frame = wp.media({
                title: 'Add Images',
                button: {text: 'Add to Images'},
                library: { type: 'image'}
            });

            meta_image_frame.on('select', function(){
                var media_attachment = meta_image_frame.state().get('selection').first().toJSON();

                   var url = '';

                $('#logo-image').val(media_attachment.url);
            });

            meta_image_frame.open();

      });
$('.remove-logo').click(function(){
$('#logo-image').val('');   
})
    
})
</pre>
<p>Lưu ý:</p>
<p>Bạn cần gọi hook <strong>admin_enqueue_scripts2  </strong></p>
<p>Đến đây là xong !</p>
<p>&nbsp;</p>
<p>Chúc các bạn may mắn.</p>
<p>&nbsp;</p>
<p>The post <a href="https://hoangthuc.com/su-dung-media-cua-wordpress-de-tai-hinh-anh/">Sử dụng media của wordpress để tải hình ảnh</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/su-dung-media-cua-wordpress-de-tai-hinh-anh/feed/</wfw:commentRss>
			<slash:comments>49</slash:comments>
		
		
			</item>
		<item>
		<title>Tạo template trong plugin wordpress</title>
		<link>https://hoangthuc.com/tao-template-trong-plugin-wordpress/</link>
					<comments>https://hoangthuc.com/tao-template-trong-plugin-wordpress/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Wed, 26 Jul 2017 10:01:22 +0000</pubDate>
				<category><![CDATA[Plugin wordpress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<category><![CDATA[plugin wordpress]]></category>
		<category><![CDATA[Taxonomy wordpress]]></category>
		<category><![CDATA[Thủ thuật wordpress]]></category>
		<category><![CDATA[wordpress nâng cao]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=508</guid>

					<description><![CDATA[<p>Thông thường để tạo template cho trang bạn phải vào theme để tạo template. Nhưng vấn đề ở đây là khi bạn muốn thay đổi theme thì template vẫn không thay đổi. Giải pháp đưa ra là bạn tạo template trong plugin để tách ra khỏi theme. Như vầy dù bạn có thay đổi theme [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/tao-template-trong-plugin-wordpress/">Tạo template trong plugin wordpress</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Thông thường để tạo template cho trang bạn phải vào theme để tạo template. Nhưng vấn đề ở đây là khi bạn muốn thay đổi theme thì template vẫn không thay đổi. Giải pháp đưa ra là bạn tạo template trong plugin để tách ra khỏi theme. Như vầy dù bạn có thay đổi theme thì template vẫn giữ nguyên. Tiêu biễu như plugin <strong>Woocommerce</strong></p>
<p>Các loại template các bạn dùng <strong>custom post</strong>, <strong>archive</strong> và <strong>page</strong>.</p>
<p>Các hook được sử dụng: <strong>single_template, archive_template</strong> và <strong>page_template</strong></p>
<p>Tiến hành code.</p>
<p>1.Custom post</p>
<p>Đối với custom post ta dung hook <strong>single_template. &#8216; YOUR_CUSTOM_POST &#8216;</strong> là tên custom post của bạn dùng.<strong> </strong></p>
<pre class="brush: php; title: ; notranslate">
function get_custom_post_type_single($single_template) {
    global $post;
    if ($post-&gt;post_type == 'YOUR_CUSTOM_POST') {
        $single_template = dirname( __FILE__ ) . '/single-YOUR_CUSTOM_POST.php';
    }
    return $single_template;
}
add_filter( 'single_template', 'get_custom_post_type_single' );
</pre>
<p>2.Archive</p>
<p>Đối với trang archive ta dung hook archive_template. &#8216; YOUR_TAXONOMY &#8216; là tên taxonomy của bạn dùng.</p>
<pre class="brush: php; title: ; notranslate">
function get_custom_archive($archive_template){
    global $wpdb;
    $archive =$wpdb-&gt;last_result;
    if ( $archive&#x5B;0]-&gt;taxonomy==  'YOUR_TAXONOMY' ) {
        $archive_template = dirname( __FILE__ ) . '/archive-YOUR_TAXONOMY.php';
    }
    return $archive_template;
}
add_filter( &quot;archive_template&quot;, &quot;get_custom_archive&quot; ) ;
</pre>
<p>3.Page Template</p>
<p>Đối với page bạn phải chọn slug chính xác thì template mới được sử dụng.</p>
<pre class="brush: php; title: ; notranslate">
add_filter( 'page_template', 'wpa_page_template' );
function wpa_page_template( $page_template )
{
if ( is_page( YOUR_SLUG ) ) {
$page_template = dirname( __FILE__ ) . '/templates/template-YOUR_SLUG.php';
}
return $page_template;
}
</pre>
<p>Chúc các bạn thành công !</p>
<p>The post <a href="https://hoangthuc.com/tao-template-trong-plugin-wordpress/">Tạo template trong plugin wordpress</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/tao-template-trong-plugin-wordpress/feed/</wfw:commentRss>
			<slash:comments>122</slash:comments>
		
		
			</item>
		<item>
		<title>Thêm bộ lọc taxonomy trong admin custom post type</title>
		<link>https://hoangthuc.com/bo-loc-taxonomy-trong-admin-custom-post/</link>
					<comments>https://hoangthuc.com/bo-loc-taxonomy-trong-admin-custom-post/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Sun, 28 May 2017 12:47:52 +0000</pubDate>
				<category><![CDATA[Custom post wordpress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<category><![CDATA[Taxonomy filter admin custom post]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=493</guid>

					<description><![CDATA[<p>Đây là đoạn code nhỏ dùng để tạo bộ lọc custom taxonomy trong admin custom post type CMS wordpress. Để có thể dễ dàng quản lý bài viết trên site. Giao diện như bên dưới. Vẫn như củ các bạn copy code và đặt vào file functions.php thôi nhưng chú ý 1 số thông số như sau: [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/bo-loc-taxonomy-trong-admin-custom-post/">Thêm bộ lọc taxonomy trong admin custom post type</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Đây là đoạn code nhỏ dùng để tạo bộ lọc <strong>custom taxonomy</strong> trong <strong>admin custom post type</strong> CMS wordpress. Để có thể dễ dàng quản lý bài viết trên site. Giao diện như bên dưới.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-494 size-full" src="https://hoangthuc.com/wp-content/uploads/2017/05/Untitled.png" alt="" width="1335" height="645" srcset="https://hoangthuc.com/wp-content/uploads/2017/05/Untitled.png 1335w, https://hoangthuc.com/wp-content/uploads/2017/05/Untitled-300x145.png 300w, https://hoangthuc.com/wp-content/uploads/2017/05/Untitled-900x435.png 900w" sizes="(max-width: 1335px) 100vw, 1335px" /></p>
<p>Vẫn như củ các bạn copy code và đặt vào file functions.php thôi nhưng chú ý 1 số thông số như sau:</p>
<p>1.Hook : Mình sử dung 2 hook là <strong>restrict_manage_posts</strong> và <strong>parse_query</strong>.</p>
<p><strong>restrict_manage_posts</strong> để lấy data taxonomy và hiển thị ra dạng dropdown taxonomy</p>
<p><strong>parse_query</strong> cải tạo lại bộ lọc để nó có thể filter thêm cái taxonomy mình mới thêm.</p>
<p>2.Biến: Bạn thay biến post_type và taxonomy thành của mình để sử dụng nhé.</p>
<p>3.Code đây</p>
<pre class="brush: php; title: ; notranslate">

add_action('restrict_manage_posts', 'tsm_filter_post_type_by_taxonomy');
function tsm_filter_post_type_by_taxonomy() {
 global $typenow;
 $post_type = 'project'; // change to your post type
 $taxonomy = 'kind'; // change to your taxonomy
 if ($typenow == $post_type) {
 $selected = isset($_GET&#x5B;$taxonomy]) ? $_GET&#x5B;$taxonomy] : '';
 $info_taxonomy = get_taxonomy($taxonomy);
 wp_dropdown_categories(array(
 'show_option_all' =&gt; __(&quot;Lọc {$info_taxonomy-&gt;label}&quot;),
 'taxonomy' =&gt; $taxonomy,
 'name' =&gt; $taxonomy,
 'orderby' =&gt; 'name',
 'selected' =&gt; $selected,
 'show_count' =&gt; true,
 'hide_empty' =&gt; true,
 ));
 };
}
/**
 * Filter posts by taxonomy in admin
 * @author Hoang Thuc
 * @link https://hoangthuc.com/bo-loc-taxonomy-trong-admin-custom-post
 */
add_filter('parse_query', 'tsm_convert_id_to_term_in_query');
function tsm_convert_id_to_term_in_query($query) {
 global $pagenow;
 $post_type = 'project'; // change to your post type
 $taxonomy = 'kind'; // change to your taxonomy
 $q_vars = &amp;$query-&gt;query_vars;
 if ( $pagenow == 'edit.php' &amp;&amp; isset($q_vars&#x5B;'post_type']) &amp;&amp; $q_vars&#x5B;'post_type'] == $post_type &amp;&amp; isset($q_vars&#x5B;$taxonomy]) &amp;&amp; is_numeric($q_vars&#x5B;$taxonomy]) &amp;&amp; $q_vars&#x5B;$taxonomy] != 0 ) {
 $term = get_term_by('id', $q_vars&#x5B;$taxonomy], $taxonomy);
 $q_vars&#x5B;$taxonomy] = $term-&gt;slug;
 }
} </pre>
<p>Chúc các bạn thành công !</p>
<p>The post <a href="https://hoangthuc.com/bo-loc-taxonomy-trong-admin-custom-post/">Thêm bộ lọc taxonomy trong admin custom post type</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/bo-loc-taxonomy-trong-admin-custom-post/feed/</wfw:commentRss>
			<slash:comments>50</slash:comments>
		
		
			</item>
		<item>
		<title>Xóa slug trên custom post và custom taxonomy: Phần 2</title>
		<link>https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-2/</link>
					<comments>https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-2/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Fri, 17 Mar 2017 20:25:06 +0000</pubDate>
				<category><![CDATA[Custom post wordpress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<category><![CDATA[Taxonomy wordpress]]></category>
		<category><![CDATA[Thủ thuật wordpress]]></category>
		<category><![CDATA[wordpress nâng cao]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=483</guid>

					<description><![CDATA[<p>Nhằm giúp các bạn tối ưu đường dẫn 1 cách gọn nhất khi tạo các custom post mới. Mình có làm 1 tus cách xóa slug cho trang single và category khi tạo custom post, mà wordpress chỉ hổ trợ cho 2 loại là post và page. Phần 2 mình sẽ hướng dẫn về cách ẩn [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-2/">Xóa slug trên custom post và custom taxonomy: Phần 2</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><em>Nhằm giúp các bạn tối ưu đường dẫn 1 cách gọn nhất khi tạo các <strong>custom post</strong> mới. Mình có làm 1 tus cách xóa slug cho trang single và category khi tạo custom post, mà wordpress chỉ hổ trợ cho 2 loại là post và page.</em></p>
<p>Phần 2 mình sẽ hướng dẫn về cách ẩn slug trên taxonomy custom post khi show bài viết. Các bạn nào chưa xem phần 1 hướng dẫn về cách<strong><a href="https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-1/" target="_blank" rel="noopener"> ẩn slug trên custom post</a>.</strong></p>
<p>Phần này mình sẽ hướng dẫn theo 2 cách , thứ nhất là dung hook trong code wordpress, hai là dùng plugin wordpress. Cách 2 có thể dùng dễ dàng cho các bạn không rành về code wordpress.</p>
<p><strong>1.Dùng hook request để ẩn slug taxonomy</strong></p>
<pre class="brush: php; title: ; notranslate">

add_filter('request', 'rudr_change_term_request', 1, 1 );

function rudr_change_term_request($query){

$tax_name = 'report_category';
if( $query&#x5B;'attachment'] ) :
$include_children = true;
$name = $query&#x5B;'attachment'];
else:
$include_children = false;
$name = $query&#x5B;'name'];
endif;
$term = get_term_by('slug', $name, $tax_name);

if (isset($name) &amp;&amp; $term &amp;&amp; !is_wp_error($term)):

if( $include_children ) {
unset($query&#x5B;'attachment']);
$parent = $term-&gt;parent;
while( $parent ) {
$parent_term = get_term( $parent, $tax_name);
$name = $parent_term-&gt;slug . '/' . $name;
$parent = $parent_term-&gt;parent;
}
} else {
unset($query&#x5B;'name']);
}

switch( $tax_name ):
case 'category':{
$query&#x5B;'category_name'] = $name; // for categories
break;
}
case 'post_tag':{
$query&#x5B;'tag'] = $name; // for post tags
break;
}
default:{
$query&#x5B;$tax_name] = $name; // for another taxonomies
break;
}
endswitch;

endif;

return $query;

}

</pre>
<p>Note* Trong phần này mình dùng hàm <strong>rudr_change_term_request</strong> để filter hook <strong>request</strong></p>
<p><strong>2. Dùng plugin wp htaccess contro</strong>l</p>
<p>Các bạn vào setting &gt;&gt; htaccess control</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-485" src="https://hoangthuc.com/wp-content/uploads/2017/03/2017-03-18_031902-hoangthuc.jpg" alt="" width="1177" height="572" srcset="https://hoangthuc.com/wp-content/uploads/2017/03/2017-03-18_031902-hoangthuc.jpg 1177w, https://hoangthuc.com/wp-content/uploads/2017/03/2017-03-18_031902-hoangthuc-300x146.jpg 300w, https://hoangthuc.com/wp-content/uploads/2017/03/2017-03-18_031902-hoangthuc-900x437.jpg 900w" sizes="(max-width: 1177px) 100vw, 1177px" /></p>
<p>Chọn Remove Taxonomies and author base sau đó tắt các slug taxonomy mà bạn muốn.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-486" src="https://hoangthuc.com/wp-content/uploads/2017/03/2017-03-18_032127-hoangthuc.jpg" alt="" width="943" height="555" srcset="https://hoangthuc.com/wp-content/uploads/2017/03/2017-03-18_032127-hoangthuc.jpg 943w, https://hoangthuc.com/wp-content/uploads/2017/03/2017-03-18_032127-hoangthuc-300x177.jpg 300w, https://hoangthuc.com/wp-content/uploads/2017/03/2017-03-18_032127-hoangthuc-900x530.jpg 900w" sizes="(max-width: 943px) 100vw, 943px" /></p>
<p>Sau đó save lại. nếu vẫn chưa hoạt động các bạn vào setting &gt;&gt; permalink bấm  save lại.</p>
<p style="text-align: center;">Chúc các bạn thành công !</p>
<p>&nbsp;</p>
<p>The post <a href="https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-2/">Xóa slug trên custom post và custom taxonomy: Phần 2</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-2/feed/</wfw:commentRss>
			<slash:comments>49</slash:comments>
		
		
			</item>
		<item>
		<title>Xóa slug trên custom post và custom taxonomy: Phần 1</title>
		<link>https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-1/</link>
					<comments>https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-1/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Sat, 11 Mar 2017 02:51:34 +0000</pubDate>
				<category><![CDATA[Custom post wordpress]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<category><![CDATA[Custom post wp]]></category>
		<category><![CDATA[Thủ thuật wordpress]]></category>
		<category><![CDATA[wordpress nâng cao]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=476</guid>

					<description><![CDATA[<p>Nhằm giúp các bạn tối ưu đường dẫn 1 cách gọn nhất khi tạo các custom post mới. Mình có làm 1 tus cách xóa slug cho trang single và category khi tạo custom post, mà wordpress chỉ hổ trợ cho 2 loại là post và page. Đầu tiên về custom post (nếu bạn nào chưa [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-1/">Xóa slug trên custom post và custom taxonomy: Phần 1</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><em>Nhằm giúp các bạn tối ưu đường dẫn 1 cách gọn nhất khi tạo các <strong>custom post</strong> mới. Mình có làm 1 tus cách xóa slug cho trang single và category khi tạo custom post, mà wordpress chỉ hổ trợ cho 2 loại là post và page.</em></p>
<p>Đầu tiên về <strong><a href="https://hoangthuc.com/wordpress-nang-cao-1-custom-post-type/" target="_blank" rel="noopener">custom post</a></strong> (nếu bạn nào chưa biết về custom post có thể xem bài viết trước của mình).</p>
<p><strong>1.Xóa slug trên custom post trong trang single:</strong></p>
<p>Link custom post single ban đầu: https://hoangthuc.com/report/bao-cao-thu-chi/</p>
<p>Link custom post single cần thay thành: https://hoangthuc.com/bao-cao-thu-chi/</p>
<p>Custom post type mình làm ở đây là &#8220;report&#8221; nếu làm bạn có thể tùy biến custom post này. Các bạn vào file fucntions.php và thêm đoạn code có định dạng bên dưới.</p>
<pre class="brush: php; title: ; notranslate">
// remove slug custom_post type
function na_remove_slug( $post_link, $post, $leavename ) {

    if ( 'report' != $post-&gt;post_type || 'publish' != $post-&gt;post_status ) {
        return $post_link;
    }

    $post_link = str_replace( '/' . $post-&gt;post_type . '/', '/', $post_link );

    return $post_link;
}
add_filter( 'post_type_link', 'na_remove_slug', 10, 3 );
</pre>
<p>Note* Trong phần này bạn sẽ dung hàm <strong>na_remove_slug </strong>để filter vào hook<strong> post_type_link</strong></p>
<p><strong>2. Xữ lý lỗi 301 redirect khi chuyển:</strong></p>
<p>Trong quá trình remove slug như bước 1 wp sẽ xuất hiện lỗi 301 không tìm thấy trang. Cách xữ lý.</p>
<pre class="brush: php; title: ; notranslate">
function na_parse_request( $query ) {

    if ( ! $query-&gt;is_main_query() || 2 != count( $query-&gt;query ) || ! isset( $query-&gt;query&#x5B;'page'] ) ) {
        return;
    }

    if ( ! empty( $query-&gt;query&#x5B;'name'] ) ) {
        $query-&gt;set( 'post_type', array( 'post', 'report', 'page' ) );
    }
}
add_action( 'pre_get_posts', 'na_parse_request' );
</pre>
<p>Sau đó các bạn và <strong>Setting</strong> =&gt; <strong>Permalink</strong> và <strong>Save button</strong> lại để hoàn tất.</p>
<p>&nbsp;</p>
<p style="text-align: center;">Chúc các bạn thành công !</p>
<p>&nbsp;</p>
<p>The post <a href="https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-1/">Xóa slug trên custom post và custom taxonomy: Phần 1</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/xoa-slug-tren-custom-post-va-custom-taxonomy-phan-1/feed/</wfw:commentRss>
			<slash:comments>49</slash:comments>
		
		
			</item>
		<item>
		<title>Lỗi url khi chuyển website sang domain mới trong wordpress</title>
		<link>https://hoangthuc.com/loi-url-khi-chuyen-website-sang-domain-moi-trong-wordpress/</link>
					<comments>https://hoangthuc.com/loi-url-khi-chuyen-website-sang-domain-moi-trong-wordpress/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Sun, 20 Nov 2016 02:43:09 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=465</guid>

					<description><![CDATA[<p>Khi chuyển trang từ domain củ sang domain mới trong wordpress thường xuất hiện một lỗi đó chính là lỗi sai đường dẫn sẽ làm cho website các bạn có thể bị redirect trang, bài viết hay các custom post khác. Hình ảnh cũng có thể bị lỗi do đường dẫn. Nguyên nhân: Do wordpress [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/loi-url-khi-chuyen-website-sang-domain-moi-trong-wordpress/">Lỗi url khi chuyển website sang domain mới trong wordpress</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Khi chuyển trang từ domain củ sang domain mới trong wordpress thường xuất hiện một lỗi đó chính là lỗi sai đường dẫn sẽ làm cho website các bạn có thể bị redirect trang, bài viết hay các custom post khác. Hình ảnh cũng có thể bị lỗi do đường dẫn.</p>
<p><strong>Nguyên nhân</strong>: Do wordpress lưu trữ các đường dẫn tỉnh trong database nện khi bạn chuyển sang domain mới nhưng databse vẫn còn là url của domian củ dẫn đến phát sinh lỗi.</p>
<p><strong>Giải quyết</strong>: Đã biết nguyên nhân thì cũng sẽ giải quyết dễ dàng thôi đó là chúng ta sẽ đổi url theo domain mới.</p>
<p><strong>Phương thức</strong>:</p>
<p>Trường hợp bị redirect cả khi vào wp-admin. Đối với trường hợp này chúng ta cần phải vào wp-config.php và set lại một số thống số như sau:</p>
<pre class="brush: php; title: ; notranslate">
define('WP_HOME','URL domain mới');
define('WP_SITEURL','URL domain mới');
</pre>
<p>Như vậy đã vào được wp-admin. Còn đối với trường hợp vào wp-admin bình thường thì ta tiếp bước 2:</p>
<p>Cài plugin <strong><a href="https://vi.wordpress.org/plugins/velvet-blues-update-urls/screenshots/" target="_blank" rel="noopener">Velvet Blues Update URLs</a> </strong></p>
<p>Plugin này cho phép ta chuyển url domain củ sang domain mới đối với post, page, media, <a href="https://hoangthuc.com/wordpress-nang-cao-1-custom-post-type/" target="_blank" rel="noopener"><strong>custom post</strong></a>. Đây là giao diện plugin</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-468" src="https://hoangthuc.com/wp-content/uploads/2016/11/change-url-hoangthuc.png" alt="change-url-hoangthuc" width="530" height="503" srcset="https://hoangthuc.com/wp-content/uploads/2016/11/change-url-hoangthuc.png 530w, https://hoangthuc.com/wp-content/uploads/2016/11/change-url-hoangthuc-300x285.png 300w" sizes="(max-width: 530px) 100vw, 530px" /></p>
<p>Chúc các bạn thành công !</p>
<p>The post <a href="https://hoangthuc.com/loi-url-khi-chuyen-website-sang-domain-moi-trong-wordpress/">Lỗi url khi chuyển website sang domain mới trong wordpress</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/loi-url-khi-chuyen-website-sang-domain-moi-trong-wordpress/feed/</wfw:commentRss>
			<slash:comments>48</slash:comments>
		
		
			</item>
		<item>
		<title>Hiển thị thời gian kể từ ngày đăng trong wordpress</title>
		<link>https://hoangthuc.com/hien-thi-thoi-gian-ke-tu-ngay-dang-trong-wordpress/</link>
					<comments>https://hoangthuc.com/hien-thi-thoi-gian-ke-tu-ngay-dang-trong-wordpress/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Sun, 22 May 2016 16:41:03 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<category><![CDATA[Thủ thuật wordpress]]></category>
		<category><![CDATA[wordpress nâng cao]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=427</guid>

					<description><![CDATA[<p>Đây là một đoạn code nhỏ trong wordpress cho phép bạn hiển thị thời gian từ ngày đăng bài đến hiện tại. Các bạn có thể thêm nó vào file function.php /** * Display time since post was published * * @uses human_time_diff() Return time difference in easy to read format * @uses get_the_time() Get [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/hien-thi-thoi-gian-ke-tu-ngay-dang-trong-wordpress/">Hiển thị thời gian kể từ ngày đăng trong wordpress</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Đây là một đoạn code nhỏ trong wordpress cho phép bạn hiển thị thời gian từ ngày đăng bài đến hiện tại. Các bạn có thể thêm nó vào file function.php</p>
<pre class="brush: php; title: ; notranslate">

/**
 * Display time since post was published
 *
 * @uses	human_time_diff()  Return time difference in easy to read format
 * @uses	get_the_time()  Get the time the post was published
 * @uses	current_time()  Get the current time
 *
 * @return	string  Timestamp since post was published
 *
 * @author c.bavota
 */
function get_time_since_posted() {

	$time_since_posted = human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) . ' ago';

	return $time_since_posted;

}

</pre>
<p>Bây giờ các bạn có thể sử dụng hàm get_time_since_posted() để hiển thị thời gian từ ngày đăng bài cho đến hiện tại trong loop wordpress.<br />
Tham khảo hàm human_time_diff() tại <a href="http://codex.wordpress.org/Function_Reference/human_time_diff">http://codex.wordpress.org/Function_Reference/human_time_diff<br />
</a></p>
<p>The post <a href="https://hoangthuc.com/hien-thi-thoi-gian-ke-tu-ngay-dang-trong-wordpress/">Hiển thị thời gian kể từ ngày đăng trong wordpress</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/hien-thi-thoi-gian-ke-tu-ngay-dang-trong-wordpress/feed/</wfw:commentRss>
			<slash:comments>48</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress nâng cao 1: Custom post type</title>
		<link>https://hoangthuc.com/wordpress-nang-cao-1-custom-post-type/</link>
					<comments>https://hoangthuc.com/wordpress-nang-cao-1-custom-post-type/#comments</comments>
		
		<dc:creator><![CDATA[Hoàng Thức]]></dc:creator>
		<pubDate>Mon, 09 May 2016 01:15:21 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress nâng cao]]></category>
		<category><![CDATA[wordpress nâng cao]]></category>
		<guid isPermaLink="false">https://hoangthuc.com/?p=394</guid>

					<description><![CDATA[<p>Trong wordpress có 2 loại custom post đã được mặc định sẳn là post và page. Post cho bài viết và page cho trang .Vậy nếu muốn tạo thêm 1 custom post ta làm thế nào. Bài viết sau sẽ hướng dẫn các bạn tạo 1 custom post đợn giản nhất. Trước hết mình xin [&#8230;]</p>
<p>The post <a href="https://hoangthuc.com/wordpress-nang-cao-1-custom-post-type/">WordPress nâng cao 1: Custom post type</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Trong wordpress có 2 loại <strong>custom post</strong> đã được mặc định sẳn là <strong>post</strong> và <strong>page</strong>. Post cho bài viết và page cho trang .Vậy nếu muốn tạo thêm 1 custom post ta làm thế nào. Bài viết sau sẽ hướng dẫn các bạn tạo 1 custom post đợn giản nhất.</p>
<p>Trước hết mình xin giới thiệu cách tạo custom post đơn giản nhất có thể dành cho người không chuyên về code đó là dùng plugin. Các plugin cho phép bạn tạo mọi thứ về custom post như taxonomy, field , post type,&#8230;</p>
<p><strong><a href="https://wordpress.org/plugins/custom-post-type-ui/" target="_blank" rel="noopener">Custom post type UI</a></strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-396" src="https://hoangthuc.com/wp-content/uploads/2016/05/custom-post-type-UI.jpg" alt="custom-post-type-UI" width="772" height="249" srcset="https://hoangthuc.com/wp-content/uploads/2016/05/custom-post-type-UI.jpg 772w, https://hoangthuc.com/wp-content/uploads/2016/05/custom-post-type-UI-300x97.jpg 300w" sizes="(max-width: 772px) 100vw, 772px" /></p>
<p><strong><a href="https://wordpress.org/plugins/types/" target="_blank" rel="noopener">Type</a></strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-395" src="https://hoangthuc.com/wp-content/uploads/2016/05/types.jpg" alt="types" width="772" height="250" srcset="https://hoangthuc.com/wp-content/uploads/2016/05/types.jpg 772w, https://hoangthuc.com/wp-content/uploads/2016/05/types-300x97.jpg 300w" sizes="(max-width: 772px) 100vw, 772px" /></p>
<p>Đây là 2 plugin mình đã sử dụng qua và theo đánh giá của mình thì rất đầy đủ.</p>
<p>Và cách thứ 2 mình muốn hướng dẫn đó là code. Các bạn có thể tích hợp trong plugin, hoặc theme.</p>
<p>Khởi tạo custom post type</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
 if( ! function_exists( 'Domain_create_post_type' ) ) :
 function Domain_create_post_type() {
 $labels = array(
 'name' =&gt; 'Domain',
 'singular_name' =&gt; 'Domain',
 'add_new' =&gt; 'Add Domain',
 'all_items' =&gt; 'All Domain',
 'add_new_item' =&gt; 'Add Domain',
 'edit_item' =&gt; 'Edit Domain',
 'new_item' =&gt; 'New Domain',
 'view_item' =&gt; 'View Domain',
 'search_items' =&gt; 'Search Domain',
 'not_found' =&gt; 'No Domain found',
 'not_found_in_trash' =&gt; 'No Domain found in trash',
 'parent_item_colon' =&gt; 'Parent Domain'
 //'menu_name' =&gt; default to 'name'
 );
 $args = array(
 'labels' =&gt; $labels,
 'public' =&gt; true,
 'has_archive' =&gt; true,
 'publicly_queryable' =&gt; true,
 'query_var' =&gt; true,
 'rewrite' =&gt; true,
 'capability_type' =&gt; 'post',
 'hierarchical' =&gt; false,
 'supports' =&gt; array(
 'title',
 'editor',
 ),
 'menu_position' =&gt; 5,
 'menu_icon' =&gt; 'dashicons-clipboard',
 'exclude_from_search' =&gt; false,
 'register_meta_box_cb' =&gt; 'domain_add_post_type_metabox'
 );
 register_post_type( 'domain', $args );

register_taxonomy( 'domain_category', // register custom taxonomy - category
 'domain',
 array(
 'hierarchical' =&gt; true,
 'labels' =&gt; array(
 'name' =&gt; 'Domain category',
 'singular_name' =&gt; 'Domain category',
 )
 )
 );
 register_taxonomy( 'domain_tag', // register custom taxonomy - tag
 'domain',
 array(
 'hierarchical' =&gt; false,
 'labels' =&gt; array(
 'name' =&gt; 'Domain tag',
 'singular_name' =&gt; 'Domain tag',
 )
 )
 );
 }
 add_action( 'init', 'Domain_create_post_type' );
endif;

 function domain_add_post_type_metabox() { 
 add_meta_box( 'domain_metabox', 'Information', 'domain_metabox', 'domain', 'normal' );
 }


 function domain_metabox() {
 global $post;
 $registrar = get_post_meta($post-&gt;ID, 'registrar', true);

echo '&lt;div class=&quot;form-horizontal&quot; &gt; 
&lt;div class=&quot;form-group&quot;&gt; 
&lt;label for=&quot;inputEmail3&quot; class=&quot;col-sm-2 control-label&quot;&gt;Registrar&lt;/label&gt; 
&lt;div class=&quot;col-sm-10&quot;&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; name=&quot;registrar&quot; value=&quot;'.$registrar .'&quot; &gt; 
&lt;/div&gt; &lt;/div&gt;
&lt;/div&gt;'; 

function domain_post_save_meta( $post_id, $post ) { 
 $domain_post_meta&#x5B;'registrar'] = strtotime($_POST&#x5B;'registrar']);
 foreach( $domain_post_meta as $key =&gt; $value ) { 
 $value = implode(',', (array)$value); 
 if( get_post_meta( $post-&gt;ID, $key, FALSE ) ) { 
 update_post_meta($post-&gt;ID, $key, $value);
 } else { 
 add_post_meta( $post-&gt;ID, $key, $value );
 }
 if( !$value ) { 
 delete_post_meta( $post-&gt;ID, $key );
 }
 }
 }
 add_action( 'save_post', 'domain_post_save_meta', 1, 2 ); 
?&gt;
</pre>
<p>Trong đây mình có làm phần tích hợp <strong><a href="https://hoangthuc.com/cach-tao-meta-box-trong-custom-post-wordpress/">meta box</a></strong> nếu các bạn thấy không cần thiết thì bỏ ra nhé.</p>
<p>Chúc các bạn thành công !</p>
<p>&nbsp;</p>
<p>The post <a href="https://hoangthuc.com/wordpress-nang-cao-1-custom-post-type/">WordPress nâng cao 1: Custom post type</a> appeared first on <a href="https://hoangthuc.com">Hi You, I am Tade</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://hoangthuc.com/wordpress-nang-cao-1-custom-post-type/feed/</wfw:commentRss>
			<slash:comments>112</slash:comments>
		
		
			</item>
	</channel>
</rss>
