Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [custom-content]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
69 views

Show dynamic list of products from custom api of another database under same host

This is the time of question where I don't know even where to start, so i'll describe what I have and what I want, so that someone maybe could give me a direction to go. I'm not asking for code, just ...
user avatar
  • 3
1 vote
1 answer
39 views

Run plugins only on certain pages

I want to use my personal plugin only in some pages. If I remove the add_action function ('the_content', 'my_plugin_content'); the plugin does not show me the content of the other pages that are not ...
user avatar
  • 19
1 vote
1 answer
61 views

Theme Development: Starter Content after hook

I'm making a Wordpress theme that generate placeholder menus using the theme support "starter content". I read the documentation and is very vague: https://make.wordpress.org/core/2016/11/30/starter-...
user avatar
1 vote
0 answers
34 views

How to create a seperate commenting system?

I'm planning to add a question and answers (custom post type) to my website. I already use my default WP comment system on my posts. Now I want a custom content type for my question post type to be ...
user avatar
  • 198
0 votes
2 answers
75 views

Custon Content within WordPress Loop

I have created a WP loop to display Services from 'Services' Custom Post Type: Here is the code: <?php $services_loop = new WP_Query( array( 'post_type' => 'service', 'posts_per_page' =&...
user avatar
0 votes
1 answer
534 views

Dynamic redirect

Using PODS, I created a content type "sorteio" (lottery). I made a routine in functions.php to create the title automatically and, after creating the first record, url looks like this: http://...
user avatar
0 votes
1 answer
41 views

How to create new content type and flushes rewrite rules without visiting the permalinks page?

I could not found a realiable way to create new content type and allow the permalink structure works. Every place where someone wants to let the permalink structure works to a new content type in ...
user avatar
0 votes
1 answer
193 views

Creating content using wp-admin pages

This may seem like a noob question but I think I have entered the wordpress world from the "wrong side". I have made an custom template where I added for example home.php, about.php and the pages I ...
user avatar
0 votes
1 answer
100 views

What's the best way to manage sections on a page?

I bought some long time ago an HTML theme which was an one-page template, however I'm changing it to be a multiple page, for SEO reasons. Then, my homepage has a lot of sections, containing slideshow, ...
user avatar
1 vote
1 answer
312 views

Load dynamic content in a wordpress website

is there a way to load a page content ( or an element ) from a page into another one on a same Wordpress website? For example, if I had a page with some links would it be possible to make a specific ...
user avatar
  • 11
0 votes
3 answers
10k views

displaying content of custom post type

I have a following code for the custom post type, and I want to display the content of it inside the loop. $args = array( 'post_type' => 'gallery', 'posts_per_page' ...
user avatar
0 votes
3 answers
84 views

Reusable and site-wide content that can be used in a theme

Goal: To define content (phone number, address etc) in the admin area that can be used (called upon) in a theme. Context: I am making a theme for a multi-site where every site will look the same, but ...
user avatar
0 votes
3 answers
1k views

writing posts in indian regional language (Punjabi)

I am trying to create a post in Punjabi Language . But when i try to paste punjabi text into the editor , the language automatically gets converted to English. I tried using the Google Translator ...
user avatar
  • 103
5 votes
4 answers
893 views

Add Content to Page without shortcodes

The site I'm working on has a couple of pages that needs to be filled with different content elements like text image combinations, sliders, lists of content, etc. The client would need to re-order ...
user avatar
  • 151
0 votes
1 answer
1k views

Custom post type name and assigning custom taxonomy

I've made mistake creating custom post type. I've put: register_post_type( 'Post Name', $args ); instead of register_post_type( 'post_name', $args ); Now I need to assign new custom taxonomy to ...
user avatar
-1 votes
1 answer
351 views

Get the excerpt of post_content

Hi guys can you explain me how to get a excerpt length of 15 for the post_content in my code: <?php $args = array( 'numberposts' => '2', 'tax_query' => array( array( '...
user avatar
5 votes
3 answers
26k views

Inserting dynamic content into a page

I see this subject comes up regularly but have not seen an answer to my specific requirement yet. I'm trying to use a WordPress page as a template and insert database-sourced content (about 20 or so ...
user avatar
0 votes
1 answer
77 views

ound this in Where to edit Custom Content fields to optional if there is no plug in?

I am having 3 custom contents on my front page. Each of them must have an image. However, I want some of them not to have the image, I want to have that field optional. Any idea where may I change it?...
user avatar
1 vote
1 answer
308 views

Create default_content layout template based on post id

Background What I am attempting to do is create a custom post layout template for a specific post (or even page) that the WordPress user can simply insert content using the WYSIWYG editor without ...
user avatar
  • 135
0 votes
1 answer
93 views

Page for logged in user to Edit/Delete their own content?

Im new to WordPress, I have been working with Drupal for about 6 years and recently switched over to WP, couldnt be happier :) I have a question that I need some assistance with and was hoping that ...
user avatar
  • 11
0 votes
0 answers
66 views

What is the best way to create very custom campaign pages?

Currently I am working with company that has very specific campaigns and each one should have its own very custom presentation page. Since its very different from usual WordPress theme design (...
user avatar
1 vote
2 answers
94 views

Is it acceptable to build functionality into a theme built for a client? [closed]

I know it's now the common wisdom to not build functionality into themes, as advised by WordPress, Envato, and others. This includes the likes of content types, taxonomies, sliders, shortcodes etc, to ...
user avatar
  • 1,029
0 votes
1 answer
134 views

How to create a Re-Usable content snippet that I can Pass a Value to?

Here's the scenario... For a local site I have different city specific pages. The first paragraph of those pages will be unique and related to the specific city. But the content after that will be ...
user avatar
1 vote
1 answer
169 views

Custom post.php

Is there any way to define a post.php for a Custom Content Type? I am trying to remove the Permalink, the Slug and the Preview Changes Button from the edit/creation page of an item in my custom ...
user avatar
8 votes
2 answers
12k views

Adding content to archive and taxonomy pages on custom post types?

I have a custom post type named "Products" and a taxonomy called "Usage". On my "Products" landing page I'd like to have custom content that can be edited via WYSIWYG by the client. Same goes for the ...
user avatar
0 votes
1 answer
596 views

Where is the right place to store custom images?

I'm converting my old web project to WP and there are tons of book covers that aren't to be uploaded/managed by WP but by my own functions. Where is the right place to store such a kind of custom ...
user avatar
  • 225
0 votes
2 answers
3k views

wordpress content .php file in an iframe's src in a wordpress post

I would like to insert an iframe with WordPress content inside a post. I explain myself. I have two things: a post and a presentation. In the the_content() WordPress filter, I add my iframe to the $...
user avatar
1 vote
1 answer
1k views

How to add text to comment form #content textarea?

I have a plugin that does validation on user submitted comments. When validation fails, I want to redirect them back to the comment form, and have their comment still appear in the comment box, so ...
user avatar
  • 168
0 votes
1 answer
1k views

Multiple Websites that share some content types and not others

I need to know if Wordpress can handle multiple sites. And between these sites, it should share some content types while restricting others. If the answer is yes, then I need to know: does it do ...
user avatar
  • 145
0 votes
1 answer
16 views

Is there a way to show different source feeds on individual pages?

As a freelance writer, I have a few outlets I write for routinely plus additional sites, and while I used to post my content manually, due to SEO concerns and logistical issues, I have been looking to ...
user avatar
0 votes
1 answer
655 views

How to add a second content section when using certain page template

Is it possible to enable a second content area in the edit screen if a certain template is chosen? I have seen plugins like the second section plugin but that enables it for all pages I would like ...
user avatar
  • 155
0 votes
1 answer
78 views

How can I show some standard html code across any theme I install?

I have some custom code that sits inside <head></head>. When I install a new WordPress theme I have to edit the header.php script each time. Is there a way to always include my custom ...
user avatar
2 votes
2 answers
1k views

Including an External File in a Post (and Using Processed Paths)

I have a post that includes a relatively large table that gets updated frequently. Instead of using the (slower) web interface to update the post each time, I installed one of the “run PHP” plugins ...
user avatar
  • 301
0 votes
1 answer
2k views

Help with Wordpress custom url rewriting?

I have 3 problems. First,I would like something like this to do : www.example.com/myblog => myblog.example.com myblog is template page. and then when open one post from that page(post are custom ...
user avatar
  • 802
0 votes
2 answers
1k views

Own code on index.php wordpress theme file, help with the rewrite rules

Hey there, I am sooo frustrated, asked and asked and can't seem to get an answer. Pleaseeeee help, I'll be very very clean whith my problem. I'll give hundreds of bears to the one who can help:) I ...
user avatar
1 vote
2 answers
11k views

How to create a list of items with fields in WordPress?

I'm new to WordPress and hoping some of you experts can help me figure out the best way to attack what seems like such a simple problem. I need to have two lists of items that the user can add to, ...
user avatar
4 votes
3 answers
5k views

Pre-fill fields with content from outside when creating a new post

I'd like to find a way to fill some of the fields from the /wp-admin/post-new.php page from an external source. It works for the title: loading /wp-admin/post-new.php?post_title=title1 fills the ...
user avatar